you want to create "pseudo" JSON from Perl with a JSON library.
There is a possibility to allow Perl objects to return a scalar, but I doubt it's possible to be js code instead of a string.
See https://metacpan.org/pod/JSON#OBJECT-SERIALISATION
I see 3 possibilities:
HTH
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: Outputting JSON with function () {...} values
by LanX
in thread Outputting JSON with function () {...} values
by cosmicperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |