Help for this page

Select Code to Download


  1. or download this
    >perl -le"package PkgA; my $foo = 'abc'; package PkgB; print $foo"
    abc
    
  2. or download this
    my $stuff1;
    my $stuff2 = undef;
    ...
    print "stuff 2: $stuff2\n";
    print "stuff 3: $stuff3\n";
    print "stuff 4: $stuff4\n";
    
  3. or download this
    my $stuff1 = 'stuff1 stuff';
    my $stuff2 = 'stuff2 stuff';
    ...
    print "stuff 2: $stuff2\n";
    print "stuff 3: $stuff3\n";
    print "stuff 4: $stuff4\n";
    
  4. or download this
    my $stuff1;
    my $stuff2;
    ...
    print "stuff 2: $stuff2\n";
    print "stuff 3: $stuff3\n";
    print "stuff 4: $stuff4\n";
    
  5. or download this
    my $stuff;
    BEGIN {
    ...
       ...
       ...
    }
    
  6. or download this
    my $stuff;
    BEGIN {
    ...
       ...
       ...
    }