http://qs321.pair.com?node_id=58516


in reply to Perl Source Stats

Can you explain your decision to not only loop over the same data set several times, but to actually read it in from the file separately for each pass?
  • Comment on (ichimunki) Basic design seems inefficient

Replies are listed 'Best First'.
Re: Re: Perl Source Stats
by dws (Chancellor) on Feb 15, 2001 at 04:29 UTC
    Rare is the Perl source that can't fit in memory.    my @source = <IN>; will do the trick, and give you something to iterate over in your subroutines.
Re: (ichimunki) Basic design seems inefficient
by spaz (Pilgrim) on Feb 15, 2001 at 05:23 UTC
    Simple!
    I'm a rank amature!

    Actually, I was thinking that at some point I might try to make this a little more robust, so that it could rewind and fast-forward. The purpose being to tell you how long each sub routine is, for example.

    -- Dave