I tried building my own module but I can't get the calling script to see
the variables being imported.

# below is the module
---------------------------------------------------------------
#!/usr/bin/perl

package Foo;
require Exporter;

our @ISA     = qw(Exporter);
our @EXPORT  = qw($foo_var);
our $VERSION = 1.00;

$foo_var = "foo_value";

1;

# below is the script
---------------------------------------------------------------
!/usr/bin/perl

use Foo;

print "$foo_var\n";

exit;

below is the output
#-------------------------------------------------------------
jeffl>./test.pl 

jeffl>

#-------------------------------------------------------------
I've checked the permissions rw-r--r--
I've checked my @INC, its in its path. I moved it out to test and it
freaked out about not finding Foo in my path. I moved it back in and it
was cool. So it can find it. It's like its not exporting squat.

It just doesn't want to pull in anything.
it seems as though there is something basic that I am not getting.



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

Reply via email to