On Nov 8, Peter Scott said:

>>   use DBI;
>>   use strict;
>>   require "defs.pl";
>>
>>   print "Welcome to $DOMAIN, $ADMIN\n";
>
>Global symbol $DOMAIN requires explicit package name...

Oops, that require() should have been inside a BEGIN { } block.

>>   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.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


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

Reply via email to