Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Unterminated \g... pattern in regex behaving badly on Windows

by jkeenan1 (Deacon)
on Nov 16, 2016 at 15:27 UTC ( [id://1176001]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unterminated \g... pattern in regex behaving badly on Windows
in thread Unterminated \g... pattern in regex behaving badly on Windows

I went with that recommendation:
- like($@, qr/Cannot find directory\(ies\): $bad_gitdir/, + like($@, qr/\QCannot find directory(ies): $bad_gitdir\E/,
Although in a couple of places I had to use the \Q ... \E syntax twice within one pattern:
- like($@, qr/Cannot find file\(s\) to be tested:.*$bad_target_args +->[1]/, + like($@, qr/\QCannot find file(s) to be tested:\E.*\Q$bad_target_ +args->[1]\E/,
Thanks to all who responded. The revised code is available at Devel-Git-MultiBisect-0.07.tar.gz and should be available on CPAN within the hour. If anyone on Windows could give that a smoke test, that would be great.

Thank you very much.

Jim Keenan

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1176001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found