in reply to Re: Returning data
in thread Returning data

Jup, seems that way. JSON::XS is great for that stuff.

... use JSON::XS ... my $encoded = encode_json \%output; ...

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

Replies are listed 'Best First'.
Re^3: Returning data
by frank1 (Monk) on Apr 21, 2024 at 08:55 UTC

    am still getting the same error even if i use that module

    Can't modify private hash in concatenation (.) or string