Do you know where your variables are? | |
PerlMonks |
Re: Log4perl swallowing $@by ELISHEVA (Prior) |
on Oct 29, 2010 at 02:34 UTC ( [id://868207]=note: print w/replies, xml ) | Need Help?? |
-- I'm so used to seeing if($@) { # handle error } -- Unless this is throwaway code, in the meantime until that bug is fixed, it wouldn't hurt to add a comment to your code to explain why you needed to do $e=$@, just so that someone further down the pike doesn't think that your own assignment code is redundant or unnecessarily confusing and try to "clean" it up. If you are so used to seeing if ($@)..., the same is likely true for others.
In Section
Seekers of Perl Wisdom
|
|