The last one is almost correct. What you want is not a character class though, and the parens will have to be escaped (the following also eats any whitespace preceeding the superfluous bit, for good measure):
$Path =~ s/\s*\(\w+\)$//;Update: Fixed typo. Thanks for the catch, redsquirrel :)