in reply to How do you place words from a sentence into an array?
open FILE, "bingo_in.txt"; undef $/; $file = <FILE>; @lines = split /\n/, $file; for (@lines ) { @words = split; }
TIMTOWTDI
--Prasad
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How do you place words from a sentence into an array?
by pg (Canon) on Oct 26, 2004 at 16:25 UTC |
In Section
Seekers of Perl Wisdom