Permalink
Browse files

fixed JSON module usage

  • Loading branch information...
1 parent 8cba8f8 commit 0f267ac8031a77a5330a10240985e05fb0e752a6 sshAdm.in committed Mar 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 snapback.pl
View
@@ -122,8 +122,8 @@
if ($debug) {
print "Response: " .$ec2DataResponse."\n";
}
-my $instanceDataRef=JSON->decode_json($ec2DataResponse);
-my $instanceDataText=JSON->from_json($ec2DataResponse, {utf8 => 1});
+my $instanceDataRef=JSON::XS::decode_json($ec2DataResponse);
+my $instanceDataText=JSON::XS::from_json($ec2DataResponse, {utf8 => 1});
my $instanceId=$instanceDataRef->{"instanceId"};
my $instanceRegion=$instanceDataRef->{"region"};
if ($debug) {

0 comments on commit 0f267ac

Please sign in to comment.