Dear Monks,
these thoughts arose in another thread, so I quote for introduction:
Django "Why do you consider Perl 5 prototypes as evil? I like the ability to use subs like built-ins."
tadman "They are poison. You should only use them when you have to, like forcing an array or subroutine reference..." <whole reply>
I don't think that prototypes (sub($){}, not software prototypes), or any other of Perls possibilities can be condemned in general. (well, you may call map wicked ;) As long as you know what you are doing, and why you are doing it that way, you can benefit from every technique IMHO. But I'm just another Perl newbie, and would appreciate to learn from your experience. So, is code like the following only useful for poetry? Is it a triumph of lazyness? Is it dangerous? Any suggestions are welcome.
sub Learn ($); sub expand ($); sub smile (); Learn $Perl, expand $wisdom && smile;
update: added semicolons to the declarations, Zaxo pointed the error out.
~Django
"Why don't we ever challenge the spherical earth theory?"
In reply to Are prototypes evil? by Django
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |