in reply to leaving only [a-zA-Z0-9]
you can also use $a =~ s/\W//g;
If you use locales; it supports special chars too.
In Section
Seekers of Perl Wisdom
in reply to leaving only [a-zA-Z0-9]
If you use locales; it supports special chars too.