Check $? (perlvar). Something like:
foreach $spamuser (@users) { my $CUR_INBOX = "$MAIL_ROOT/$spamuser/cur"; @ham = `find $CUR_INBOX -type f 2>&1`; $? and die "@ham $!"; }
--
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho
In reply to Re: backticks spits out error, but I want to handle errors! *shakes fist*
by greenFox
in thread backticks spits out error, but I want to handle errors! *shakes fist*
by dark314
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |