« blib/lib/WWW/Mechanize/FormFiller/Value/Callback.pm
↑ Summary
blib/lib/WWW/Mechanize/FormFiller/Value/Default.pm »
| 1 | package WWW::Mechanize::FormFiller::Value; | ||||||||||
| 2 | |||||||||||
| 3 | 17 | ▶ | use vars qw( $VERSION @ISA ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 17 | $VERSION = '0.13'; | |||||||||
| 5 | 17 | @ISA = (); | |||||||||
| 6 | |||||||||||
| 7 | 67 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 8 | 67 | my ($class,$name) = @_; | |||||||||
| 9 | 67 | my $self = { | |||||||||
| 10 | name => $name, | ||||||||||
| 11 | }; | ||||||||||
| 12 | |||||||||||
| 13 | 67 | bless $self,$class; | |||||||||
| 14 | |||||||||||
| 15 | 67 | $self; | |||||||||
| 16 | }; | ||||||||||
| 17 | |||||||||||
| 18 | # You're supposed to override this | ||||||||||
| 19 | 0 | ▶ | sub value { undef }; | ||||||||
|
Subroutine
value: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | |||||||||||
| 21 | # You can't set the name, but retrieve it | ||||||||||
| 22 | 3 | ▶ | sub name { my $result = $_[0]->{name}; $_[0]->{name} = $_[1] if scalar @_ == 2; $result }; | ||||||||
|
Subroutine
name: called CC=2 SCAR=6.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 23 | |||||||||||
| 24 | 17 | 1; | |||||||||
| 25 | __END__ | ||||||||||