|
|
Deane.Rothenmaier@xxxxxxxxxxxxx wrote:
>
> No. You want to use "or", NOT "||" in these cases.....
This is fine:
chdir $newdirloc || die;
Where you would want to use 'or' vs '||' is when something to
the left of the '|| is of higher precedence than '||' and you
don't want to bother with a bunch of extra parens.
> *"Wagner, David --- Senior Programmer Analyst --- WGO"
> <David.Wagner@xxxxxxxxxxxxxxxxx>*
> Sent by: activeperl-bounces@xxxxxxxxxxxxxxxxxxxxxxxx
>
> You can do chdir($newdirloc) || # die or whatever here if directory does
> not exist or problem
_______________________________________________
ActivePerl mailing list
ActivePerl@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|
|