On Sun, Apr 04, 2004 at 01:28:42PM -0700, R. Joseph Newton wrote: > Guay Jean-Sébastien wrote: > > > > my $errors = 0; > > open (CRITICALSERVERS, "$crout") || $errors += 2; > > > > that will translate to: > > > > my $errors = 0; > > ( open (CRITICALSERVERS, "$crout") || $errors ) += 2; > > Nope.
$ perl -MO=Deparse,-p -e 'open (CRITICALSERVERS, "$crout") || $errors += 2' Can't modify logical or (||) in addition (+) at -e line 1, at EOF -e had compilation errors. ((open(CRITICALSERVERS, "$crout") || $errors) += 2); -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>