- or download this
# file foo
our $foo = 'hello world!';
- or download this
#!/usr/bin/perl
use strict;
...
no $foo
$foo defined
hello world!
- or download this
#!/usr/bin/perl
use strict;
...
print "no \$foo" unless defined $main::{foo};
require 'foo'; # or do 'foo'
print $main::foo;