$ cat test.pm use strict; package test; our $foo = "test"; 1; $ cat p #!/usr/bin/perl -w use strict; use lib "."; use test; print $test::foo ."\n"; $ ./p test $
Dave.
In reply to Re^4: Variables from modules
by dave_the_m
in thread Variables from modules
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |