Skip to content

Commit 8825fb5

Browse files
declare these variables as they are used
1 parent 537c826 commit 8825fb5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/HTTP/Request/Common.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ sub form_data # RFC1867
135135
my @data = ref($data) eq "HASH" ? %$data : @$data; # copy
136136
my $fhparts;
137137
my @parts;
138-
my($k,$v);
139-
while (($k,$v) = splice(@data, 0, 2)) {
138+
while (my ($k,$v) = splice(@data, 0, 2)) {
140139
if (!ref($v)) {
141140
$k =~ s/([\\\"])/\\$1/g; # escape quotes and backslashes
142141
push(@parts,

0 commit comments

Comments
 (0)