mojo-role-sample

Example Mojo -role (uses Role::Tiny)

main-with_roles_new.pl

  • Create an object with '->with_roles' to specify the role to use/add

main-with_in_class.pl

  • Declare inside the package with 'with' which role to use/add