summaryrefslogtreecommitdiff
path: root/t/re/qr.t
Commit message (Collapse)AuthorAgeFilesLines
* [RT #36079] Convert ` to '.jkeenan2011-11-221-1/+1
|
* Break out the test for #72922 into a new test file.Nicholas Clark2011-02-211-62/+1
| | | | Skip the new t/re/qr-72922.t under minitest.
* Replaced 'unlink' with 'unlink_all' in t/re/qr.tBrad Gilbert2010-12-081-1/+1
|
* Add missing bug numbersFather Chrysostomos2010-09-201-1/+1
|
* Add tests for 72922.Bram2010-09-131-1/+62
| | | | Check that a Regex object which was previous copied and weaken'ed can be used in another pattern.
* fix qr// and get-magic problemsFather Chrysostomos2010-01-191-1/+11
| | | | | [N.B. I converted package name separators from q{'} to q{::} in the test files as suggested by demerphq. -- dagolden]
* [perl #70764] $' fails to initialized for pre-compiled regular expression ↵Father Chrysostomos2009-12-141-1/+61
| | | | | | | | | | | | | | | | | | | matches The match vars are associated with the regexp that last matched successfully. In the case of $str =~ $qr or /$qr/, since the $qr could be used in multiple scopes that need their own sets of match vars, the $qr is cloned by Perl_reg_temp_copy as of change 30677/28d8d7f. This happens in pp_regcomp before pp_match has stringified the LHS, hence the bug. In short, /$gror/ is not equivalent to ($which = !$which) ? /$gror/ : /$gror/, which is weird. Attached is a patch, which admittedly is a hack, but fixes this particular side effect of what is probably a bad design, by stringifying the LHS in pp_regcomp, and having pp_match skip get-magic in such cases. A real fix far exceeds my capabalities, and would also be very intrusive according to <http://www.nntp.perl.org/group/perl.perl5.porters/2007/03/msg122415.html>.
* move regex related tests out of t/op/ into t/re/Yves Orton2009-09-101-0/+13