I learnt this the hard way. I used to write:
if ( $DEBUG ){ use CGI::Carp qw(fatalsToBrowser); }
thinking that when I put the code into production all my debugging would dissapear with a simple $DEBUG=0; but Carp is always loaded no matter the value of $DEBUG. It took a long while for me to notice the error becuase when run in prod the conditions which would trigger a die didn't normally occur. My bad.
--
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho
In reply to Re^3: Common Perl Idioms
by greenFox
in thread Common Perl Idioms
by eric256
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |