And even if it were valid JSON, it couldn't work (at least not without a transpiler or something that does not currently exist). It assumes something along these lines is possible to write, and for it to be meaningful if you could—
print to_json({ a => sub(){\1} });Update, removed extra brace.
In reply to Re: Outputting JSON with function () {...} values
by Your Mother
in thread Outputting JSON with function () {...} values
by cosmicperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |