in reply to Read File into array and split
this however:
is almost certainly wrong and at least very confusing.$raw_data=<DATA>; while (<DATA>) { foreach ($raw_data) {
you probably want:
Also note that the DATA file handle is special. you may want to use some other name if you're reading from some random file.while (<DATA>) { my @new_data = split /ms/; # do stuff }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read File into array and split
by tokyobuddha (Novice) on Mar 07, 2008 at 03:28 UTC | |
by ikegami (Patriarch) on Mar 07, 2008 at 05:44 UTC | |
by tokyobuddha (Novice) on Mar 07, 2008 at 09:39 UTC | |
by ikegami (Patriarch) on Mar 08, 2008 at 05:52 UTC | |
by hipowls (Curate) on Mar 07, 2008 at 03:59 UTC | |
by tokyobuddha (Novice) on Mar 07, 2008 at 05:44 UTC | |
by hipowls (Curate) on Mar 08, 2008 at 00:01 UTC |