The split in
could be rewritten asmy @word = split " ", $_;
this will have the effect of removing all white space and periods and giving a list of lower case words. You need to read it backwards, the split happens before the map.my @words = map { lc } # convert to lower case split /[\s.]+/, $_; # split on white space and "."
In reply to Re: Removing characters
by hipowls
in thread SOLVED Removing characters
by Slug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |