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.