Re: better way to skip first few lines of file read?
- From: Uri Guttman <uri@xxxxxxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 18:55:15 -0500
"R" == Ruud <rvtol> writes:
R> The "for 1 .. $n" is OK, unless a very large $n would mean that precious
R> memory is wasted.
that wasteful expansion has been fixed for a while now. for will detect
that and convert it to a simple loop counter and not expand the list of
numbers if it is large.
uri
--
Uri Guttman ------ uri@xxxxxxxxxxxxxxx -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
.
- References:
- Re: better way to skip first few lines of file read?
- From: Alan Campbell
- Re: better way to skip first few lines of file read?
- From: Dr.Ruud
- Re: better way to skip first few lines of file read?
- Prev by Date: Re: perl extracting substrings from string
- Next by Date: Re: perl extracting substrings from string
- Previous by thread: Re: better way to skip first few lines of file read?
- Next by thread: 1, random; 2, unicode
- Index(es):