Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Can't find Unicode property definition "A"

by ikegami (Patriarch)
on Sep 30, 2009 at 17:49 UTC ( [id://798417]=note: print w/replies, xml ) Need Help??


in reply to Can't find Unicode property definition "A"

You're treating $root_dir as a regex pattern, but I doubt that's what it contains. Use quotemeta (directly or via \Q\E) to convert arbitrary text into a pattern that matches the text.
s!^\Q$root_dir\E[\\/])!! for @results;

(Simplified and sped up the pattern by removing needless captures and factoring the common prefix out of the alternation.)

Replies are listed 'Best First'.
Re^2: Can't find Unicode property definition "A"
by Anonymous Monk on Sep 30, 2009 at 18:04 UTC
    Thank you for the quick replies. It's working now.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-19 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found