Skip to content

Commit f966876

Browse files
mikkoioalders
authored andcommitted
Tidify lib/WWW/Mechanize.pm
1 parent 115ccc2 commit f966876

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/WWW/Mechanize.pm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,10 +1644,9 @@ sub form_action {
16441644
my ( $self, $action ) = @_;
16451645

16461646
my $temp;
1647-
my @matches = grep {
1648-
defined( $temp = $_->action )
1649-
and ( $temp =~ m/$action/msx )
1650-
} $self->forms;
1647+
my @matches
1648+
= grep { defined( $temp = $_->action ) and ( $temp =~ m/$action/msx ) }
1649+
$self->forms;
16511650

16521651
my $nmatches = @matches;
16531652
if ( $nmatches > 0 ) {

0 commit comments

Comments
 (0)