I think what you want is constructor related, not exporter related...

I have this covered in an OO tutorial on my site.
you would probably find it usefull to read:
http://japh.nu/index.cgi?base=tuts

both part 1 and 2 deal with the problem you're experiencing.

hope this helps,

Jos Boumans


----- Original Message -----
From: "F.H" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 10:52 PM
Subject: RE: Re: arguments with a module


> 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.
>
> Thanks
>
> I.S
>
>
>
> Troy Denkinger <[EMAIL PROTECTED]> wrote:
>
> >On Thursday 16 August 2001 16:16, F.H wrote:
> >> Hi there,
> >> Can you use in a perl script a module with an argument. something like
> >> use mymodule -myargument;
> >>
> >> I get this message: "-myargument" is not exported bt the mymodule
module.
> >> I tried in the module this
> >> @mymodule::EXPORT = qw(myargument )
> >> and still it didn't work.
> >
> >Is this a module you're creating?  If so, can you post all (if it's
brief) or
> >some of it so we can see what you're trying to do?
> >
> >I think what you probably want is:
> >
> >use vars qw( @EXPORT, @ISA );
> >@EXPORT = qw( function_name );
> >@ISA = qw( Exporter );
> >require Exporter;
> >
> >I'm not sure what you mean by "argument".
> >
> >Regards,
> >
> >Troy
> >
> >
>
>
> __________________________________________________________________
> Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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

Reply via email to