You have several precedence problems where you're using || where you really want or instead. Your print line for instance parses like this:
print(SAVE ($output || die(((q[can't write to save ] . $!) . "\n"))));
Which means that if $output evaluates to a false value then you're going to see a spurious die with who knows what error message from who knows what transient value that got left in $!.
Update: OK, maybe s/several/a couple/; looking closer you have precedence problems with the print line and when you call open.
We're looking for a Perl and Database Developer for Corporate Investments Group.
In reply to Re: Inappropriate ioctl for device
by Fletch
in thread Inappropriate ioctl for device
by downer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |