- or download this
print "Content-type: text/html\n\n";
- or download this
print "Content-type: application/json\n\n";
- or download this
#!/usr/bin/perl
use strict;
...
my $json = encode_json( [$string] );
print $cgi->header( -type => 'application/json' );
print $json;
- or download this
function perlExecute(term){
$.ajax({
...
error: function() {alert("did not work");}
});
};