dark314 has asked for the wisdom of the Perl Monks concerning the following question:
Update
I'm going to go with greenFox's response, because thats definately what I'm looking for, although the other responses were not wrong! thanks.
-----------------------Update Above-------------------------
I want to handle any errors that find comes accross, instead it spitting to standard out. Is there some way to do this? Im sure there is, here is my attempt which failed. Thanks!
foreach $spamuser (@users) { my $CUR_INBOX = "$MAIL_ROOT/$spamuser/cur"; @ham = `find $CUR_INBOX -type f` or warn "Error!\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: backticks spits out error, but I want to handle errors! *shakes fist*
by andyford (Curate) on Aug 16, 2006 at 23:43 UTC | |
by tinita (Parson) on Aug 17, 2006 at 10:17 UTC | |
Re: backticks spits out error, but I want to handle errors! *shakes fist*
by diotalevi (Canon) on Aug 16, 2006 at 23:45 UTC | |
Re: backticks spits out error, but I want to handle errors! *shakes fist*
by greenFox (Vicar) on Aug 17, 2006 at 03:26 UTC | |
Re: backticks spits out error, but I want to handle errors! *shakes fist*
by rodion (Chaplain) on Aug 16, 2006 at 23:28 UTC | |
Re: backticks spits out error, but I want to handle errors! *shakes fist*
by Anonymous Monk on Aug 17, 2006 at 02:03 UTC |