good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: "Baby" Perl versus "Bad" Perlby tphyahoo (Vicar) |
on Dec 05, 2005 at 09:13 UTC ( [id://514069]=note: print w/replies, xml ) | Need Help?? |
Maybe...
Baby perl doesn't use shortcuts. EG, doesn't use references, and if it does use them it uses them verbosely: ${$ref} not $$ref. Doesn't use methods, just subs. Doesn't use the "pronouns", eg $_, @_. Or better put, uses them a little bit, but quickly sets them to vars so that the baby doesn't have to look at something that looks like punctuation. for with a test instead of grep. for instead of map. On the other hand, basic things, like avoiding overuse of global variables, should be observed even by a "baby." And I disagree that use strict shouldn't be expected of babies. If you see your baby crawling towards a glowing fireplace with a goofy smile on his face, you would stop him and yell at him not to do that again, no? Same thing.
In Section
Meditations
|
|