- or download this
$main::foo;
$CGI::POST_MAX;
@foo::bar;
- or download this
my $foo;
my $POST_MAX;
my @bar;
- or download this
Global symbol "$foo" requires explicit package name at C:\test.pl
+line 2.
- or download this
package foo;
use strict;
our $bar; # These are the same
$foo::bar; # These are the same
- or download this
our $field;
- or download this
use strict;
for ( 1 .. 3 ) { &doit }
...
our $foo;
print ++$foo . "\n";
}
- or download this
$main::sql = $order->lineItemSQL;
$main::dbh->prepare( $main::sql );
- or download this
our ( $sql, $dbh );
...
$sql = $order->lineItemSQL;
$dbh->prepare( $sql );
- or download this
use strict;
{
...
$foo = "Ovid";
}
print $foo;
- or download this
use strict;
{
...
$foo = "Ovid";
}
print $main::foo;
- or download this
use strict;
my $foo = 'bar';
...
}
print $foo;