Hi, Sorry if I am being a bore but I was curious, TrimEdges uses "$val =~ s/\s+\z//;" to remove white-space from the end of a string. I can't find a character class for \z. How does \z differ from $? Thanx, Dp.