Re perl-like for loops you should check perlsyn. However, briefly, they're
for (@list) { do_something }
or
for my $item (@list) { do_something }
Now it seems to me others already answered most of your other questions. Only thing to add: "OP" stands for either "Original Poster" or "Original Post", depending on the context. Well, that's how I have always understood it...
| [reply] [d/l] [select] |
op is, I guess, that author's abbrv. (heh) for operator.
UPDATE: wrong, at least I wrote guess.
Loading a file into an array will consume at least as much memory as the file size, so not much point if you just need to read one line at a time in order.
The reputation relates to perlmonks self moderation, have a read in the FAQ's under experience points.
BTW. Have you got it working yet? Are you going to post some data, or just keep us guessing? ;-) | [reply] |
| [reply] |
OP: Original Post(er)
The Perfect is the Enemy of the Good.
| [reply] |