in reply to Re: Huge simple problem
in thread Huge simple problem
May I suggest that you learn to use the foreach loop in Perl, rather than the c-style for loop.
Do note that foreach is just an alternate spelling of for. for my $text (@searchtexts) { ... } is exactly equivalent to foreach my $text (@searchtexts) { ... }.
Either way, though, I can't remember the last time I used a C-style for loop in Perl. for ( [list] ) is so much nicer and avoids all those nasty off-by-one errors.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Huge simple problem
by Anonymous Monk on Aug 06, 2009 at 01:00 UTC | |
by Anonymous Monk on Aug 06, 2009 at 01:01 UTC | |
Re^3: Huge simple problem
by dreadpiratepeter (Priest) on Aug 06, 2009 at 04:07 UTC |
In Section
Seekers of Perl Wisdom