| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WWW::Mechanize::FormFiller::Value::Random::Word; | 
| 2 | 1 |  |  | 2 |  | 284 | use base 'WWW::Mechanize::FormFiller::Value'; | 
|  | 1 |  |  |  |  | 43 |  | 
|  | 1 |  |  |  |  | 2 |  | 
| 3 |  |  |  |  |  |  |  | 
| 4 | 1 |  |  | 2 |  | 1 | use vars qw( $VERSION ); | 
|  | 1 |  |  |  |  | 29 |  | 
|  | 1 |  |  |  |  | 13503 |  | 
| 5 | 1 |  |  | 2 |  | 2 | use Data::Random qw(rand_words); | 
|  | 1 |  |  |  |  | 23 |  | 
|  | 1 |  |  |  |  | 411 |  | 
| 6 |  |  |  |  |  |  | $VERSION = '0.12'; | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | sub new { | 
| 9 | 2 |  |  | 5 | 1 | 3 | my ($class,$name,@args) = @_; | 
| 10 | 2 |  |  |  |  | 58 | my $self = $class->SUPER::new($name); | 
| 11 | 2 | 0 |  |  |  | 434 | @args = (size => 1) unless scalar @args; | 
| 12 | 2 |  |  |  |  | 11895 | $self->{args} = [ @args ]; | 
| 13 | 2 |  |  |  |  | 251 | $self; | 
| 14 |  |  |  |  |  |  | }; | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | sub value { | 
| 17 | 1 |  |  | 5 | 1 | 94 | my ($self,$input) = @_; | 
| 18 | 1 |  |  |  |  | 1 | return join " ", @{rand_words( @{$self->{args}} )}; | 
|  | 1 |  |  |  |  | 19 |  | 
|  | 1 |  |  |  |  | 8 |  | 
| 19 |  |  |  |  |  |  | }; | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | 1; | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | __END__ |