Okay, I've been beating my head against this one all day! Hope someone can help.
I'm trying to export some scalars from a module. Just some configuration information. The whole module is as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ package Config; our ($HOME_DIR, $INC_URL); require Exporter(); our @ISA = qw(Exporter); our @EXPORT = qw(); our @EXPORT_OK = qw($HOME_URL $INC_URL); $HOME_URL = "http://orange.he.net/blah" $INC_URL = "$HOME_URL/inc"; 1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I attempt to import some of the variables with the following: use Config qw($HOME_URL); print("home URL is: $HOME_URL"); However, this doesn't work. When I run the importing program (a cgi file) from the command line, I get an error message like this: [Wed Jul 3 12:15:00 2002] expertise.cgi: Can't continue after import errors at ././expertise.cgi line 12 [Wed Jul 3 12:15:00 2002] expertise.cgi: BEGIN failed--compilation aborted at ././expertise.cgi line 12. orange:~/cgi-bin/mgmt$ expertise.cgi "$HOME_URL" is not exported by the Config module at /usr/lib/perl5/Exporter.pm line 111 Exporter::export('Config', 'main', '$HOME_URL') called at /usr/lib/perl5/Exporter.pm line 171 Exporter::import('Config', '$HOME_URL') called at ././expertise.cgi line 12 main::BEGIN() called at ././expertise.cgi line 12 For the life of me, I can't figure out what I'm doing wrong. Please help! Thanks: John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]