in reply to 3-arg open() does not give warnings!?

Maybe operator priority:
open FH, ">", $ARGV[0] || die "'OR' operator should be '||'\n";


Replies are listed 'Best First'.
Re^2: 3-arg open() does not give warnings!?
by blazar (Canon) on Jul 15, 2005 at 13:42 UTC
      What I mean is:
      open FH, ">", ( $ARGV[0] || die "...");
      Of course this is not a solution, because this does not check errors from open function but it works fine for me.