Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Top 10 things I learned my 1st month as a Monk

by Gavin (Archbishop)
on Jul 18, 2007 at 18:02 UTC ( [id://627317]=note: print w/replies, xml ) Need Help??


in reply to Top 10 things I learned my 1st month as a Monk

What happened to use strict.
  • Comment on Re: Top 10 things I learned my 1st month as a Monk

Replies are listed 'Best First'.
Re^2: Top 10 things I learned my 1st month as a Monk
by toolic (Bishop) on Jul 18, 2007 at 18:10 UTC
    use strict; is absolutley critical.

    I've been using it for years. This posting is not meant to be a comprehensive list of all the basic necessities. It is merely the most important things I learned since joining PM.

      Every time I see production code without those two words up the top, I die a little inside. We've been transitioning servers at work this week and today when writing a new script I found a mailer module that wasn't working as expected. The reason:
      my $Package = caller(); my $MailServer = eval "\$".$Package."::Settings{'MailServer'}";
      All the existing modules had %Settings declared as a global so it worked. Eurgh.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-24 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found