On Thu, Aug 16, 2001 at 04:52:09PM -0400, F.H wrote:
> what I mean by argument is a switch/option that I pass to the module that I call 
>whithin my main perl script. Yes I have those line in my module:
> >use vars qw( @EXPORT, @ISA );
> >@EXPORT = qw( function_name );
> >@ISA = qw( Exporter );
> >require Exporter
> the module is so long that is not worth posting over here. All I need is to be able 
>to pass an argument/switch  to it, in my case is a file name.
> so I need to have something like
> use mymodule -myargument=<value>
> 
> I hope I am a little clearer this time.

What you are after is almost certainly done better by some other means.
Maybe you should call a function.  If it's OO maybe the argument should
be passed to the constructor.  Maybe you should derive sub classes.
Maybe you should set a global variable (but probably not).

However, if you really want to do what you asked for, you can write your
own import() sub in your module, and then you can do whatever you want
with it.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to