o2bwise has asked for the wisdom of the Perl Monks concerning the following question:
while ( $sth->fetch() ) { .... }
while ( $sth->fetch() ) { chomp $x; last if ( $x =~ /^foo/ ); } print "$x\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting out of a loop
by eric256 (Parson) on Jun 16, 2006 at 19:57 UTC | |
by o2bwise (Scribe) on Jun 16, 2006 at 20:14 UTC | |
by eric256 (Parson) on Jun 16, 2006 at 21:18 UTC | |
by o2bwise (Scribe) on Jun 17, 2006 at 01:40 UTC | |
by o2bwise (Scribe) on Jun 16, 2006 at 21:49 UTC | |
by Argel (Prior) on Jun 16, 2006 at 20:32 UTC | |
by o2bwise (Scribe) on Jun 16, 2006 at 21:51 UTC |