- or download this
package Foo;
...
our @EXPORT = qw( $foo );
1;
- or download this
package Client1;
use strict;
use warnings;
use Foo;
1;
- or download this
package Client2;
use strict;
use warnings;
use Foo;
1;
- or download this
#!/usr/bin/perl
...
print "Client1::foo=", $Client1::foo, "\n";
print "Client2::foo=", $Client2::foo, "\n";
- or download this
Client1::foo=FOO
Client2::foo=FOO
Client1::foo=CLIENT2
Client2::foo=CLIENT2