> what is the $OUT_FILE?


If you saw Chas owens response to the original message you would have read

<quote>
That would be because $OUT_FILE is a file handle, not the file's name.
 You should also not be using the qx// operator (aka backticks) to do
this, Perl can handle it just fine:
</quote>

It is a name, hopefully descriptive, of a file. Example, you wish to write
a list of telephone numbers to a file, /var/data/telephone_numbers.txt

So what you do is create a file handle

open my $TELEPHONE_NRS, ">", "/var/data/telephone_numbers.txt" or die ...

Then later, print to that fil., eg

print $TELEPHONE_NRS "23456789\n";

But if you have had a bad morning, and cant think of a file handle name,
you can always fall back to things like;

$LOG, $OUT, $OUT_FILE not descriptive but none the less, a file handle



Owen




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to