Help for this page

Select Code to Download


  1. or download this
    $ourVAR = "123 ABC";
      {
    ...
    __END__
    my  packAA  ourVAR = 456 RST
    our packAA  ourVAR = 123 ABC
    
  2. or download this
    package Foo;
    our $foo = 'bar';
    
    package main;
    print $foo,"\n";   # bar
    
  3. or download this
    # file foo.pl
    use strict;
    our $shared = "one fish";
    
  4. or download this
    # file bar.pl
    use strict;
    our $shared =~ s/e f/e half f/;
    
  5. or download this
    #/usr/bin/perl
    use strict;
    ...
    print $shared,"\n";
    __END__
    one half fish