How to assign a file handle to a subroutine.
==============================
my $FH;
open($FH,"< /tmp/text");
my_print(\*$FH);
exit(0);
sub my_print {
my $FH = shift;
my @arr = <$FH>;
print @arr;
}
==============================
my $FH;
open($FH,"< /tmp/text");
my_print(\*$FH);
exit(0);
sub my_print {
my $FH = shift;
my @arr = <$FH>;
print @arr;
}