Jun 25, 2007 #1 focussys Technical User Joined Jun 25, 2007 Messages 3 Location AU how do i pass file handle to a subroutine
Jun 25, 2007 1 #2 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO hi Code: sub hmm { my $han=$_[0]; my $lin=<$han>; print "--$lin--\n"; } open HAN,"<input.file"; &hmm([red]\*[/red]HAN); close HAN;' Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
hi Code: sub hmm { my $han=$_[0]; my $lin=<$han>; print "--$lin--\n"; } open HAN,"<input.file"; &hmm([red]\*[/red]HAN); close HAN;' Feherke. http://rootshell.be/~feherke/