The syntax of that statement is fine and it should do what you want. That suggests that OUTFILE is not open to write. Have you tested this on the command line?
Without a shebang line, the batch script must be calling this as '/usr/bin/perl [flags] LIST'. Add -w to the flags and lead off your scripts with use strict;. That will get you error messages. $^W can be set if you can't get warnings enabled in the batch script.
After Compline,
Zaxo
In reply to Re: Figuring out the environment
by Zaxo
in thread Figuring out the environment
by Willman023
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |