Re: List with qw and without

2008-07-26 Thread Rob Dixon
William wrote: > package MyConfig; > use constant (DOCUMENT_ROOT => "/var/www/"); > require Exporter; > our @ISA = qw(Exporter); > our @EXPORT_OK = qw(DOCUMENT_ROOT); # This works > #our @EXPORT_OK = (DOCUMENT_ROOT); # But this does not work > > 1; > > use MyConfig qw(DOCUMENT_ROOT); > print DOCU

List with qw and without

2008-07-26 Thread William
package MyConfig; use constant (DOCUMENT_ROOT => "/var/www/"); require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(DOCUMENT_ROOT); # This works #our @EXPORT_OK = (DOCUMENT_ROOT); # But this does not work 1; use MyConfig qw(DOCUMENT_ROOT); print DOCUMENT_ROOT; # If I do not use qw , I