develooper Front page | perl.perl5.porters | Postings from October 2003

doc-patch & test-patch for `perl -V:<name>`

Thread Next
Jim Cromie
October 23, 2003 13:42
doc-patch & test-patch for `perl -V:<name>`
Message ID:

    adds pod wrt  regex feature of -V:name
    I resisted any commentary on implementation, ex what triggers 
literal vs regex search.
    (arguably regex could do literal..)

       adds 3 tests to verify that a regex like /.*(?{ `rm -rf / ` })/  
is prevented.

It has a couple todo tests, one of which appears to expose a bug.
I was unable to search RT for a possible match, and google showed only 1 
near fit
from 15k hits on this: perl "Sequence (?{...})" regex.

uncommenting the print in the t-patch yields:

res: Sequence (?{...}) not terminated or not {}-balanced in regex; 
marked by <-- HERE in m/^abuse.*(?{ <-- HERE =/ at ../lib/ line 
Attempt to free unreferenced scalar: SV 0x81a488c.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About