Jeff ,

Import is redundant because, whenever you say, "use Defaults" it is akin 
to a directive.

So what it does implicitly is to invoke the "import" method of the 
module named "Defaults" .

So when you say, "use strict;" or "use warnings;" , implicitly the 
"import" method of those modules are invoked transparently. I did verify 
this by opening the strict.pm and warnings.pm and both of them had the 
"import" function.

Please correct me, if I am wrong.

Thanks,
Rex

>.
>
>>>  package Defaults;
>>>  require Exporter;
>>>  @ISA = 'Exporter';
>>>  @EXPORT = qw( $DOMAIN $ADMIN );
>>>
>>>  $DOMAIN = "...";
>>>  $ADMIN = "...";
>>>
>>>  Defaults->import;
>>>
>>>  1;
>>>
>>I don't think you want to call the import method from within the Defaults 
>>package.
>>
>
>Hrm.  But it worked when I tried it.  No, it doesn't.  Hrm.  Oh well.
>





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

Reply via email to