Hello seekers of wisdom like myself.
I've just started learing Mojolicious and came up to this statement:
has schema => sub { return Schema->connect('dbi:SQLite:test.db'); };
Which adds a subrutine to $self I suppouse :)
I tried to search in Google, here(perlmonks), and perldoc with no success about this "has" construction.
Anyone knows exactly what it does?
Thanks.
In reply to "has" statement by tritt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |