Name: Anonymous 2007-10-04 22:09
In perl, how would one read a text file into an array such that each word (as separated by whitespace) would become a different element?
myarray = file('lol').split()preg_split('/\s+/', file_get_contents('lol'))