line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Mechanize::FormFiller::Value::Interactive; |
2
|
1
|
|
|
2
|
|
275
|
use base 'WWW::Mechanize::FormFiller::Value::Callback'; |
|
1
|
|
|
|
|
28
|
|
|
1
|
|
|
|
|
3
|
|
3
|
1
|
|
|
2
|
|
2
|
use strict; |
|
1
|
|
|
|
|
123
|
|
|
1
|
|
|
|
|
64676
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
2
|
|
4
|
use vars qw( $VERSION ); |
|
1
|
|
|
|
|
34
|
|
|
1
|
|
|
|
|
580
|
|
6
|
|
|
|
|
|
|
$VERSION = '0.13'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
1
|
|
|
3
|
1
|
6
|
my ($class,$name) = @_; |
10
|
1
|
|
|
|
|
1
|
my $self = $class->SUPER::new($name, \&ask_value); |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
56
|
$self; |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub ask_value { |
16
|
1
|
|
|
0
|
|
1626
|
my ($self,$input) = @_; |
17
|
2
|
|
|
|
|
5
|
print $input->name,"> ","[",$input->value,"]"; |
18
|
1
|
|
|
|
|
182
|
my $result = <>; |
19
|
1
|
|
|
|
|
2
|
chomp $result; |
20
|
1
|
0
|
|
|
|
23
|
$result = $input->value if $result eq ""; |
21
|
1
|
|
|
|
|
13
|
$result; |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |