Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
... foreach my $name (@names) { # Skip if it doesn't contain data. next unless $name; check_names($name); } ... sub check_names { my(@names) = @_; my $how_many_names_total = @names; print "$how_many_names_total"; } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting in loop help!
by Kenosis (Priest) on Jul 26, 2012 at 20:29 UTC | |
by Anonymous Monk on Jul 27, 2012 at 13:25 UTC | |
|
Re: Counting in loop help!
by aitap (Curate) on Jul 26, 2012 at 19:50 UTC | |
|
Re: Counting in loop help!
by Rudolf (Pilgrim) on Jul 26, 2012 at 19:53 UTC | |
by Anonymous Monk on Jul 26, 2012 at 20:01 UTC | |
by Rudolf (Pilgrim) on Jul 26, 2012 at 20:26 UTC |