Syntactic Confectionery Delight | |
PerlMonks |
How not to pass undef variablesby dru145 (Friar) |
on Jan 10, 2002 at 21:48 UTC ( [id://137784]=perlquestion: print w/replies, xml ) | Need Help?? |
dru145 has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks, I'm having an issue that I can't seem to figure out. Below is my subroutine. It's purpose is to match an email address from a whois query and have a list of email addresses to ignore. The ignore regex seems to work fine, but when an email is ignored, Perl still appears to be assigning the value to undef because I'm getting this error when running the script:
It appears to be dying because Mail::Sender is being passed an undefined value. Any suggestions on how to code this properly? Also, does my ignore regex look ok?
Thanks, Dru Another satisfied monk.
Back to
Seekers of Perl Wisdom
|
|