in reply to Re: "for" surprise
in thread "for" surprise
(Of course, code is simplified and not tested)my $i; for ($i=0; $i<=$#list; $i++) { last if found_it( $list[$i] ); } print "Found at position $i\n" if ($i <= $#list);
And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: "for" surprise
by podian (Scribe) on Nov 24, 2003 at 18:18 UTC |