OK, parenthesese _and_ or seems to have finally done the trick - it's hp-ux, which probably explains it. (I use that as my excuse for all inexplicable behaviour - "hp-ux is stupid !")
Thanks everyone! Kate On 8/11/06, Ronald J Kimball <[EMAIL PROTECTED]> wrote: > 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

