in reply to Re: why won't is print every value???
in thread why won't is print every value???
because if the second argument passed to the script evaluates to false (0,undef,''), the script will die even if you didn't wish it to do so. a way to prevent this:die "\nYou haven't entered enough parameters !!\n\n" unless $ARGV[1];
die "\nYou haven't entered enough parameters !!\n\n" unless defined $A +RGV[1];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: why won't is print every value???
by erasei (Pilgrim) on Jun 05, 2002 at 21:02 UTC |