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

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

by mattk (Pilgrim)
on Jul 25, 2007 at 09:11 UTC ( #628653=note: print w/replies, xml ) Need Help??


in reply to Re^2: Top 10 things I learned my 1st month as a Monk
in thread Top 10 things I learned my 1st month as a Monk

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
Node Status?
node history
Node Type: note [id://628653]
help
Chatterbox?
[ovedpo15]: how fast and a good way to print error if more than one out of three variables are defined? for example if there are $a $b $c. I want that if for example $a and $b are defined - print error (also for $a and $c or $b and $c)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-04-22 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?