Skip to content

Commit

Permalink
Changed code to support perl 5.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
cwimmer committed Sep 10, 2012
1 parent 32e89ba commit 629d6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/01-aws4_testsuite.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use strict;
use warnings;
use Test::More;
use HTTP::Request;
use 5.012; # so readdir assigns to $_ in a lone while test

use Net::Amazon::SignatureVersion4;
my $sig=new Net::Amazon::SignatureVersion4();
Expand All @@ -18,7 +17,8 @@ if ( ! opendir($testsuite, $test_suite_location)){
exit(1);
}

while(readdir $testsuite) {
my @tests=readdir $testsuite;
while(my $_=pop @tests) {
next unless ($_=~m/(.*)\.req/);
my $test=$1;
# diag "Test: $test\n";
Expand Down

0 comments on commit 629d6f7

Please sign in to comment.