Help for this page

Select Code to Download


  1. or download this
    package A;
    sub new { 
    ...
    }
    $obj = new A;
    undef $obj;
    
  2. or download this
    package A;
    sub new { 
    ...
    }
    $obj = new A;
    undef $obj;
    
  3. or download this
    $bar = "this\nthat\n";
    open(FH, '<', \$bar);
    ...
    open(FH, '>', \$bar);
    print FH "this\n";
    print FH "that\n";
    
  4. or download this
    # $foo = capture { print 'hi'; }
    # $foo will be filled as if someone had done $foo = `perl -e { print '
    +hi'; }` or something like that
    ...
        close($fh);
        $ret;
    }
    
  5. or download this
    $"=$,,$_=q>|\p4<6 8p<M/_|<('=>
    .q>.<4-KI<l|2$<6%s!<qn#F<>;$,
    .=pack'N*',"@{[unpack'C*',$_]
    }"for split/</;$_=$,,y[A-Z a-z]
             {}cd;print lc