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 }
In reply to Re: Read File into array and split
by Joost
in thread Read File into array and split
by tokyobuddha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |