Patrick2003 has asked for the wisdom of the Perl Monks concerning the following question:
test(); sub test { $count = 0; $count++ while (<>); print "COUNT = $count"; while (<>) { chomp; print $_."\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: while loop hanging
by no_slogan (Deacon) on Jan 31, 2003 at 18:30 UTC | |
|
Re: while loop hanging
by insensate (Hermit) on Jan 31, 2003 at 20:47 UTC | |
|
Re: while loop hanging
by Anonymous Monk on Jan 31, 2003 at 19:02 UTC | |
|
Re: while loop hanging
by dbp (Pilgrim) on Jan 31, 2003 at 19:10 UTC | |
by Patrick2003 (Initiate) on Jan 31, 2003 at 19:47 UTC | |
by Hofmator (Curate) on Jan 31, 2003 at 20:29 UTC |