in reply to local @ARGV and die()
{ local @ARGV = 'not_a_file'; local $SIG{__WARN__} = sub { die shift }; # SIG{__WARN__} is now set INSIDE the while loop # also, so you might want to unset it locally there while (<>) { print "This won't print\n"; } print "This won't print either\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: local @ARGV and die()
by dserodio (Novice) on Sep 14, 2001 at 23:33 UTC |