On Wednesday, July 3, 2002, at 12:37 , John Almberg wrote:
> 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;
You might want another Name here - since there is a Config.pm
already out there.... how about
package Almberg::WebConfig;
> 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;
>
>
you might want to use 'tags'
our @EXPORT_OK = ( url_var => [qw/$HOME_URL $INC_URL/] );
then in your script you would call that with
use Almberg::WebConfig qw/:url_vars/;
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]