in reply to Unassociated Filehandles and Subroutines
You need to look at IO::File, or open( my $fh, ... ) for newer perls (see perldoc perlopentut).