H
Harold Pritchett
I am modifying a perl script which I did not write.
I am at best a beginning perl programmer, but have been
writing code in other languages for over 30 years.
My question is the difference in the following two
statements:
print FILE "$_";
print FILE ">$_";
The file is the same, and is opened with the statement:
&lopen($FH, ">>", "$opt_f$suffix") ||
die("Can't append to $opt_f$suffix: $!");
$is_open = 1;
This is done in a subroutine and the file handle FILE is
passed into the subroutine as FH. The file name obviously
is passed in two pieces, $opt_f and $suffix.
I've tried to find this on the web, but have failed
miserably.
Thanks
Harold
I am at best a beginning perl programmer, but have been
writing code in other languages for over 30 years.
My question is the difference in the following two
statements:
print FILE "$_";
print FILE ">$_";
The file is the same, and is opened with the statement:
&lopen($FH, ">>", "$opt_f$suffix") ||
die("Can't append to $opt_f$suffix: $!");
$is_open = 1;
This is done in a subroutine and the file handle FILE is
passed into the subroutine as FH. The file name obviously
is passed in two pieces, $opt_f and $suffix.
I've tried to find this on the web, but have failed
miserably.
Thanks
Harold