Do you know where your variables are? | |
PerlMonks |
Re^2: first steps with Mojolicious::Liteby Discipulus (Canon) |
on Jun 15, 2020 at 16:11 UTC ( [id://11118100]=note: print w/replies, xml ) | Need Help?? |
Thanks Anonymous Monk for the hint, I looked at Under and it seems powerful, maybe a bit too much framew-orcish at the moment. Or, if you prefere, too much sugar for my taste. Surely for my ignorance but when I see my $foo = $r->under('/foo')->to('foo#baz'); I cannot see immediately what is passing on. But anyway thanks for the hint; something to study. But, if I dont misunderstand myself, I have not duplicated code in the actual code: the IP check and the authentication only happens in get_first while in get_second only a cookie is checked, no?
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|