Help for this page

Select Code to Download


  1. or download this
    
    class Foo extends Bar {
    ...
        $this->{CACHE}{$url} = $html ;
      }
    }
    
  2. or download this
    package main ;
    
      my $foo = new Foo(123) ;
      $foo->get_pages('http://www.perlmonks.com/', ['/index.pl','/foo'] , 
    +{proxy => 'localhost:8080'}) ;
    
  3. or download this
    sub test {
      my $this = shift ;
      my ( $arg1 , @list ) = @_ ;
      $this->other(...);
    }
    
  4. or download this
    sub test ($arg1 , @list) {
      $this->other(...);
    }
    
  5. or download this
    sub testref ($arg1 , \@list , \%hash) {
      $this->other(...);
    ...
    
    ## use:
    $object->testref("foo" , [1,2,3] , {k1 => 1})
    
  6. or download this
    sub testref {
      my $arg1 = $_[0] ;
    ...
      my %hash = %{$_[2]} ;
      $this->other(...);
    }
    
  7. or download this
    class Foo extends Bar, Baz {...}