in reply to Removing white space from the file

You can do it in command line itself,

perl -p -i -e "s/[0-9\s]//g" uuu.txt
Options:
    -p processes, then prints <> line by line
    -i activates in-place editing.
    The regex substitution acts on the implicit variable, which are the contents of the file, line-by-line

Read more on perlrun for each options.


All is well. I learn by answering your questions...