From e05675e5c15369ad26c151de1687d1ac745098b4 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Tue, 11 May 2010 12:16:57 +0200 Subject: fix infinite loop --- lib/MooseX/Net/API.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/MooseX/Net') diff --git a/lib/MooseX/Net/API.pm b/lib/MooseX/Net/API.pm index 634416f..1587810 100644 --- a/lib/MooseX/Net/API.pm +++ b/lib/MooseX/Net/API.pm @@ -207,7 +207,7 @@ sub net_api_method { my $path = $options{path}; # replace all args in the url - while ( $path =~ /\$(\w+)/ ) { + while ( $path =~ /\$(\w+)/g ) { my $match = $1; if ( my $value = delete $args{$match} ) { $path =~ s/\$$match/$value/; -- cgit 1.4.1