Permalink
Browse files

yet this fixes it

  • Loading branch information...
1 parent 7f86d61 commit 84cf349de7176ef51d8f041a3b2e3125a571d86a @frioux committed Nov 10, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Resty.pm
View
@@ -37,8 +37,9 @@ sub new {
my $query = '';
$self->{verbose} = 0;
- my $path = shift @ARGV unless $ARGV[0] && $ARGV[0] =~ /^-/;
- my $data = shift @ARGV unless $ARGV[0] && $ARGV[0] =~ /^-/;
+ my ($path, $data);
+ $path = shift @ARGV unless $ARGV[0] && $ARGV[0] =~ /^-/;
+ $data = shift @ARGV unless $ARGV[0] && $ARGV[0] =~ /^-/;
$path ||= '';
$data ||= '';

0 comments on commit 84cf349

Please sign in to comment.