summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-05-11 12:16:57 +0200
committerfranck cuny <franck@lumberjaph.net>2010-05-11 12:16:57 +0200
commite05675e5c15369ad26c151de1687d1ac745098b4 (patch)
tree40732949a969342387346048955379c2016a2a92
parentrename package (diff)
downloadmoosex-net-api-e05675e5c15369ad26c151de1687d1ac745098b4.tar.gz
fix infinite loop
Diffstat (limited to '')
-rw-r--r--lib/MooseX/Net/API.pm2
1 files changed, 1 insertions, 1 deletions
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/;