| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WWW::Mechanize::FormFiller::Value::Random::Word; |
|
2
|
1
|
|
|
2
|
|
270
|
use base 'WWW::Mechanize::FormFiller::Value'; |
|
|
1
|
|
|
|
|
43
|
|
|
|
1
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
1
|
|
|
2
|
|
3
|
use vars qw( $VERSION ); |
|
|
1
|
|
|
|
|
124
|
|
|
|
1
|
|
|
|
|
55673
|
|
|
5
|
1
|
|
|
2
|
|
2
|
use Data::Random qw(rand_words); |
|
|
1
|
|
|
|
|
27
|
|
|
|
1
|
|
|
|
|
394
|
|
|
6
|
|
|
|
|
|
|
$VERSION = '0.13'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
|
9
|
2
|
|
|
5
|
1
|
3
|
my ($class,$name,@args) = @_; |
|
10
|
2
|
|
|
|
|
63
|
my $self = $class->SUPER::new($name); |
|
11
|
2
|
0
|
|
|
|
417
|
@args = (size => 1) unless scalar @args; |
|
12
|
2
|
|
|
|
|
13425
|
$self->{args} = [ @args ]; |
|
13
|
2
|
|
|
|
|
321
|
$self; |
|
14
|
|
|
|
|
|
|
}; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub value { |
|
17
|
1
|
|
|
5
|
1
|
159
|
my ($self,$input) = @_; |
|
18
|
1
|
|
|
|
|
1
|
return join " ", @{rand_words( @{$self->{args}} )}; |
|
|
1
|
|
|
|
|
19
|
|
|
|
1
|
|
|
|
|
12
|
|
|
19
|
|
|
|
|
|
|
}; |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |