Subject: | Can't store Regexp under Perl 5.12. |
The dclone (at least) method fails under Perl 5.12 when cloning a
structure containing a regular expression.
Under Perl 5.10.1:
$ perl -MStorable=dclone -MYAML -e 'print Dump( dclone ( { foo =>
qr{bar} } ) )'
---
foo: !!perl/regexp Regexp=SCALAR(0x813000)
Under Perl 5.12.0:
$ perl -MStorable=dclone -MYAML -e 'print Dump( dclone ( { foo =>
qr{bar} } ) )'
Can't store REGEXP items at -e line 1.
Regular expressions became first-class objects under Perl 5.12.