in reply to Help with Regular Expressions

What's wrong with: $CurrentPath =~ s/^\Q$BasePath\E//;?

Replies are listed 'Best First'.
Re^2: Help with Regular Expressions
by FFSparky (Acolyte) on Apr 11, 2012 at 14:00 UTC
    Anonymous Monk,

    Absolutely nothing and Thank You!

    I felt there was a simpler way, yet my searches for understanding on quoted constructs were not clearly showing me some good practical examples.