On Fri, Aug 11, 2006 at 10:00:44AM -0400, Tal Cohen wrote:
> This is just a wild guess, but it could be an order of operations issue. Try
> using "or" instead of "||".

This is actually a precedence issue, rather than an order of operations
issue.

|| has high-precedence, so that
chmod 0777, $file || die "That didn't work so well";
is parsed as
chmod 0777, ($file || die "That didn't work so well");

As Tal suggested, you should be using "or" instead.  (Putting parentheses
around chmod's arguments would also work.)

If that's still not working, it would probably be helpful to know what
platform you're running Perl on.

Ronald
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to