- or download this
#!/usr/bin/perl --
use strict;
use warnings;
...
print $q->header("application/json");
print $json->encode({ c => $c });
- or download this
#!/usr/bin/perl --
use strict;
use warnings;
...
return $json->encode({ c => $c });
}
- or download this
#!/usr/bin/perl --
use strict;
use warnings;
...
my $c = $a + $b;
return $json->encode({ c => $c });
}
- or download this
#!/usr/bin/perl --
use strict;
use warnings;
...
my $c = $a + $b;
return $json->encode({ c => $c });
}