Parvez,
You can't directly access your %hash in perl from your
javascript, like you're trying to do.
You have to print out the hash in a perl loop within
your print "javascript" perl code.
Something like this more or less...
#!/usr/bin/perl
my $count = 0;
print <
var some_array = ne
Hi All,
I have a small CGI script which creates a small hash. I want to retrieve values from
the hash in javascript.
A snippet of my code is as follows:
use CGI;
my $q = new CGI;
print $q->header;
print qq[
];
my %hash = qw (
ONE 1
TWO 2