I meant to send this to the whole list. __________________________________________________________________ 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/
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]