> "Alloun, Jonathan" wrote:
> 
> Yes, I have fixed that problem but I am calling a set of different modules from 
>within my Perl program. I am generating a log file and therefore have a filehandle 
>that I opened initially.
> 
> How do I make the file handle that I opened once in the Perl program available to 
>the Perl modules that are called further down in the Perl program??
> 
> I have tried to pass the filehandle to the sub in the module but without success.
> 
> Any ideas??

Use a vrbl for the filehandle, eg:

        my $fh = 'IN';          # or $fh = gensym

        &call_read_routine ($fh);

        sub call_read_routine {
                my $fh = shift;

or use the OO interface in IO::Handle

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.wgn.net/~dbe/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED]   http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to