On 03/30/2005 01:48 PM, Ankur Gupta wrote: > eval{ > > require "file" or die "unable to find file"; > > }; > > print "$@"; > > > > But it always prints "Can't locate file in @INC. blah blah "
If you actually want to die, try moving the die outside of the eval:
eval { require "file";} or die "unable to find file $@";
-- Todd de Gruyl
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>