Is the following subroutine valid:
sub close_file {
my ($file_handle) = shift;
close $file_handle;
}
For example, say you open a file as follows:
open (FILE, ">>info.dat");
Is the following call valid to close the file:
&close_file (FILE);
Dan
sub close_file {
my ($file_handle) = shift;
close $file_handle;
}
For example, say you open a file as follows:
open (FILE, ">>info.dat");
Is the following call valid to close the file:
&close_file (FILE);
Dan