- or download this
#!perl
use strict;
...
sub printer {
print "This is ". $My::Test::VERSION ."\n";
}
- or download this
test: 1.23
Use of uninitialized value $My::Test::VERSION in concatenation (.) or
+string at
x.pl line 17.
This is
1
- or download this
my $test = 1.23;
- or download this
SYMBOL TABLE:
$test = 1.23
- or download this
print "test: $test \n";
- or download this
print My::Test::Print::printer() ."\n";
- or download this
print "This is ". $My::Test::VERSION ."\n";
- or download this
# mytest.pl:
...
sub printer {
print "This is ". $MyTest::VERSION ."\n";
}
- or download this
# MyTest.pm:
package MyTest;
our $VERSION = 1.11;
- or download this
$ perl mytest.pl
This is 1.11
- or download this
#!perl
use strict;
...
sub printer {
print "This is ". $My::Test::VERSION ."\n";
}
- or download this
$ perl mytest.pl
This is 1.11