in reply to Re^5: putting text into array word by word
in thread putting text into array word by word
while (<FILE>) { my @these_words = split(' ', $_); foreach my $this_word (@these_words) { $this_word =~ s/[[:punct:]]//g; $this_word = lc($this_word); push @all_words, $this_word; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: putting text into array word by word
by Not_a_Number (Prior) on Jan 10, 2012 at 10:35 UTC | |
by jms53 (Monk) on Jan 10, 2012 at 19:47 UTC | |
by Not_a_Number (Prior) on Jan 10, 2012 at 20:02 UTC | |
by jms53 (Monk) on Jan 10, 2012 at 20:14 UTC |