in reply to printing values within a given range

Hello again. Thanks for all the info so far, it's really helped. Someone mentioned that I was using C like for loops instead of perl-like ones ... I didn't even know there was a difference! lol! And I was wondering why it's generally not a good idea to feed a file into an array first. Would that be because of memory perhaps? As you can probably guess from my example, I'm a bit of a novice, but would like to progress as quickly as. Everyone has been extremely helpful. Thanks.
p.s. What does the 'reputation' comment mean at the top of each of my posts? And what does OP stand for? Thanks
  • Comment on Re: printing values within a given range

Replies are listed 'Best First'.
Re^2: printing values within a given range
by blazar (Canon) on May 03, 2005 at 15:05 UTC
    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...
Re^2: printing values within a given range
by reasonablekeith (Deacon) on May 03, 2005 at 14:54 UTC
    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? ;-)

      OP: Original Post(er)

      The Perfect is the Enemy of the Good.