I'm not sure what the problem is. I just tried it out myself and it worked fine. Try either stepping through it with the perl debugger (have a look at perldebug and perldebtut if you're not familiar with it), or using Data::Dump to dump out the value of $email. And make sure you use strict and use warnings.
-b
In reply to Re^3: Using Net::IMAP::Simple to read emails
by bgreenlee
in thread Using Net::IMAP::Simple to read emails
by eizo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |