On Fri, 4 May 2007, Xavier Calbet wrote:
Yes, this fixes the problem
exec ($cmd) or die "Could not exec (" . $? . ", " . $! . ")\n";
exec $cmd || die "Could not..."
would probably have worked as well. You have to watch out for the low
precedence of "or"
open my $fh, $file or die "....";
will parse as
open my $fh, ($file or die "...");
which you probably don't want.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl