Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; our $foo = "test"; 1;
#!/usr/bin/perl -w use strict; use lib "/var/www/scripts"; use test; print $test::foo ."\n";
print $foo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Variables from modules
by dave_the_m (Monsignor) on Sep 16, 2004 at 14:05 UTC | |
by Anonymous Monk on Sep 16, 2004 at 14:14 UTC | |
by Anonymous Monk on Sep 16, 2004 at 14:16 UTC | |
by ikegami (Patriarch) on Sep 16, 2004 at 14:42 UTC | |
by dave_the_m (Monsignor) on Sep 16, 2004 at 14:40 UTC | |
|
Re: Variables from modules
by sintadil (Pilgrim) on Sep 16, 2004 at 14:03 UTC | |
|
Re: Variables from modules
by zejames (Hermit) on Sep 16, 2004 at 14:33 UTC | |
by dave_the_m (Monsignor) on Sep 16, 2004 at 14:46 UTC | |
by ikegami (Patriarch) on Sep 16, 2004 at 14:47 UTC |