I'm a casual PERL programmer at best, and I have a working facsimile of the non-working code below. When I run it, I get an error "print() on closed filehandle $fh at ./test.pl line [n]".
This is just my first step to being able to pass file handles to my sub-routines. What have I missed? open my $fh, "test" || die $!; print $fh "Hello!\n"; close $fh; Secondly, how do I pass STDOUT has a file handle to a sub-routine? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]