trenchwar has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl while() my $count=o; { print 'Enter a number'; chomp ($input = <STDIN>); foreach $input {$count++ } last; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Count from 1 after a user entered number
by Joost (Canon) on Mar 22, 2008 at 23:23 UTC | |
by trenchwar (Beadle) on Mar 22, 2008 at 23:26 UTC | |
by Joost (Canon) on Mar 22, 2008 at 23:37 UTC | |
|
Re: Count from 1 after a user entered number
by FunkyMonk (Bishop) on Mar 22, 2008 at 23:24 UTC | |
|
Re: Count from 1 after a user entered number
by ww (Archbishop) on Mar 23, 2008 at 01:08 UTC | |
|
Re: Count from 1 after a user entered number
by oko1 (Deacon) on Mar 23, 2008 at 04:23 UTC |