Coder's Guild Mailing List

Passing filehandles to perl subs

Posted by ADnoctum on 2000-05-05

Hi,

I'm writing a perl script and i need to pass a filehandle to a function.
Something like this.

open DATA, "master.dat";
mysub DATA $vars;
close DATA;
mysub STDIN $morevars;

How can i do that.

Thanks to all

To signoff send a mail to listserver@xxxx.xx.xx with 
  "signoff tcg" in the body of your message.