in reply to Re (3): Removing Spaces From A File
in thread Removing Spaces From A File
Seems like it is a little clunky. Not the way I imagined it but it does work. I was thinking more along the lines of:my($name, $pwd); while(<LIST>) { chomp; $name = $pwd = $_ ; $name =~ s/\s//g ; $pwd =~ s/\s//g ; $pwd =~ tr [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw +xyz] [2223334445556667778889990022233344455566677788899 +900] ; write NEWFILE ; }
|
|---|