Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: "Baby" Perl versus "Bad" Perl

by tphyahoo (Vicar)
on Dec 05, 2005 at 09:13 UTC ( [id://514069]=note: print w/replies, xml ) Need Help??


in reply to "Baby" Perl versus "Bad" Perl

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.

Replies are listed 'Best First'.
Re^2: "Baby" Perl versus "Bad" Perl
by Anonymous Monk on Dec 06, 2005 at 21:17 UTC
    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?

    "The burnt hand teaches best" :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://514069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found