Help for this page

Select Code to Download


  1. or download this
    package Blah; {
        sub foo {
    ...
    package main; {
        foo();
    }
    
  2. or download this
    c:\@Work\Perl\monks\R0b0t1>perl -le
    "package Blah; {
    ...
     }
    "
    bar!
    
  3. or download this
    { package Foo;
      my $x = ...;
    ...
      sub bar { ... }
      ...
      }
    
  4. or download this
    package Foo {
      my $x = ...;
    ...
      sub bar { ... }
      ...
      }
    
  5. or download this
    c:\@Work\Perl\monks\R0b0t1>perl -wMstrict -le
    "print 'perl version: ', $];
    ...
    A: in package main
    B: in package Foo
    C: in package main