in reply to Removing Special Characters

Depending on your definition of "special", something like this might work for you:

$str =~ tr/a-zA-Z//dc

Replies are listed 'Best First'.
Re^2: Removing Special Characters
by CountZero (Bishop) on Nov 01, 2011 at 08:40 UTC
    For a banker "%" might not be special. And we are not even touching the subject of Unicode.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James