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:
All the existing modules had %Settings declared as a global so it worked. Eurgh.my $Package = caller(); my $MailServer = eval "\$".$Package."::Settings{'MailServer'}";
|
---|
In Section
Meditations