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