Help for this page

Select Code to Download


  1. or download this
    #!perl
    use strict;
    ...
    sub printer {
            print "This is ". $My::Test::VERSION ."\n";
    }
    
  2. 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
    
  3. or download this
    my $test = 1.23;
    
  4. or download this
    SYMBOL TABLE:
    $test = 1.23
    
  5. or download this
    print "test: $test \n";
    
  6. or download this
    print My::Test::Print::printer() ."\n";
    
  7. or download this
            print "This is ". $My::Test::VERSION ."\n";
    
  8. or download this
    # mytest.pl:
    
    ...
    sub printer {
            print "This is ". $MyTest::VERSION ."\n";
    }
    
  9. or download this
    # MyTest.pm:
    package MyTest;
    our $VERSION = 1.11;
    
  10. or download this
    $ perl mytest.pl
    This is 1.11
    
  11. or download this
    #!perl
    use strict;
    ...
    sub printer {
            print "This is ". $My::Test::VERSION ."\n";
    }
    
  12. or download this
    $ perl mytest.pl
    This is 1.11