in reply to passing a file handle to a subroutine

I recommend using lexical filehandles:
open my $rm3d_fh, '>', $fullFileName or die "...$!"; rm3dHeader( $rm3d_fh ); sub rm3dHeader { my $fh = shift; print $fh "START..."; }
I think that's easier to understand than trying to pass a glob.

Replies are listed 'Best First'.
Re^2: passing a file handle to a subroutine
by kevind0718 (Scribe) on Sep 04, 2007 at 19:15 UTC
    that worked first try.
    many thanks
    kd