somefunc( *FH ); sub somefunc { my $fh = shift; # use it like a normal filehandle }