Title: RE: masks earlier declaration in same scope

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??

Many thanks,

Jonathan


-----Original Message-----
From: Cornish, Merrill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 6:53 PM
To: Alloun, Jonathan; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: masks earlier declaration in same scope


Jonathan,

The my declaration for a variable such as should appear only once in a given
scope.  After you have declared it, you can then assign to that declared
variable as many times as you need. 

     my $name0 = "c:/test";
     . . .
     $name0 = "c:/file2";
     . . .
     $name0 = "c:/output.txt";

Does that help?


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to