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


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

Reply via email to