Re: Using a variable in a perl module

2004-09-18 Thread Gunnar Hjalmarsson
Octavian Rasnita wrote: Does anyone know how can I use in a perl module a certain variable defined in the main program? That's a pure Perl question, that would have been better suited at the [EMAIL PROTECTED] list. Provided that it is a global variable, you can always have the module use it via i

Using a variable in a perl module

2004-09-18 Thread Octavian Rasnita
Hi all, Does anyone know how can I use in a perl module a certain variable defined in the main program? I know how to Export a variable from the module to the main program, and in fact that module uses OOP, but I don't know how to send a variable from the main program to the module, or how to modi