We don't bite newbies here... much | |
PerlMonks |
Re: Handling weird return values with or dieby sierrathedog04 (Hermit) |
on Jul 06, 2001 at 00:10 UTC ( [id://94252]=note: print w/replies, xml ) | Need Help?? |
not system("zip -rq $target $project_root") or die "couldn't exec zip: $!";
reduces to die "couldn't exec zip: $!" if system ("zip -rq $target $project_root");
Might as well reduce the two keywords "not" and "or" to just one "if".
In Section
Seekers of Perl Wisdom
|
|