This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #108780] Make /foo$qr/ work under ‘no overloading’
authorFather Chrysostomos <sprout@cpan.org>
Tue, 14 Feb 2012 19:50:10 +0000 (19:50 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:32:48 +0000 (13:32 +0100)
commit1e8a3b2152353363351e69c589d0f60e4c8bfb49
tree4d2e5916ef7166e498e96048b94fb1be23dc7e37
parent5a415bbc7b49dddee868d9ecdae614fd68433277
[perl #108780] Make /foo$qr/ work under ‘no overloading’

This commit redoes 37c07a4b2, which had to be reverted to allow the
re-eval work to be rebased onto blead.

It changes the code in re_op_compile (formerly in pp_regcomp) to use
the underlying REGEXP instead of the reference to it, when concatenat-
ing pieces to mark a larger regular expression.  This makes /foo$qr/
work even under ‘no overloading’.  It stopped working with commit
a75c6ed6b.
lib/overloading.t
regcomp.c