activeperl@listserv.activestate.com
[Top] [All Lists]

Re: Problems with Archive::Tar under XP - Perl v5.8.8.817

Subject: Re: Problems with Archive::Tar under XP - Perl v5.8.8.817
From: "$Bill Luebkert"
Date: Thu, 20 Jul 2006 17:20:49 -0700
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

<Prev in Thread] Current Thread [Next in Thread>