On Fri, May 30, 2003 at 04:25:48PM +0100, Orton, Yves wrote: > Although the fact is that stringification of Regexes in perl is partially > broken (or was the last time I looked at the source.) For instance > > #!perl -l > my $funky=bless qr/The invisible regex!/,"flintstone"; > print ref($funky); > print "$funky"; > print "The invisible regex!"=~$funky; > bless $funky,"Regexp"; > print ref($funky); > print "$funky\n"; > __END__ > flintstone > flintstone=SCALAR(0x1acf02c) > 1 > Regexp > (?-xism:The invisible regex!) > > Even the magic pointer is still there the stringification lookup is > hardcoded against the package 'Regexp'. In bleadperl it gives: flintstone (?-xism:The invisible regex!) 1 Regexp (?-xism:The invisible regex!) (IIRC, there's even a testcase for that) Regards, AdiThread Previous | Thread Next