XP is just a number | |
PerlMonks |
Re: JSON saving regex?by thargas (Deacon) |
on Jan 27, 2012 at 13:16 UTC ( [id://950357]=note: print w/replies, xml ) | Need Help?? |
The problem is that qr/.../ produces a Regexp object (try ref(qr/.../)). If you know where all the regexes are in your structure, you could convert them all to strings before calling to_json() on them. Or you can do:as documented in JSON
In Section
Seekers of Perl Wisdom
|
|