Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 3063855c6c158b6d748a1b738bf13cdb > files > 12

perl-CGI-Ajax-0.707-7.fc15.noarch.rpm

#!/usr/bin/perl -w

use strict;
use CGI; 
use JSON;
use Data::Dumper;

my $q = new CGI;


print $q->header(); 


my $val = $q->param('args');
my @vals = split(//, $val);


my $hash;
map { $hash->{$_} = chr(ord($_)+1) } @vals;

my $json = objToJson($hash);

print "var jsonObj = $json";