[Catalyst] Form handling, urls and web design

A. Pagaltzis pagaltzis at gmx.de
Tue Jan 24 00:19:42 CET 2006


* Yuval Kogman <nothingmuch at woobling.org> [2006-01-24 00:15]:
>Syntactic sugar is DRY's cousin. $c->req->args->[0] might not be
>repetitive, but it sure is long ;-)

well, if you imagine how it looks like if you have 4 parameters
and/or need to do this in 10 different subs, it most assuredly
*does* turn into a question of DRY. :-)

Regards,
-- 
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



More information about the Catalyst mailing list