I am trying to take an input file and separate it word by word into an array
My current code
Thank youopen FILE, "+>", "input.txt" or die $!; print "file loaded \n"; while (<FILE>) {@all_words = split('', $_); push @all_words, @words; }
In reply to putting text into array word by word by jms53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |