Help for this page

Select Code to Download


  1. or download this
    package foo; {
      print __PACKAGE__; # prints "foo"
    }
    
    print __PACKAGE__; # also prints "foo"
    
  2. or download this
    {
      package foo;
    ...
    }
    
    print __PACKAGE__; # prints "main"