in reply to Need counter assistance
"(scalar @files)" means "the number of items in the @files array", which is, of course, your count.print "Total count = ",(scalar @files),"\n\n"; for(@files) { print "$_\n"; $ct++ } # leaving this in here so you can make sure it prints the # same thing print "\nTotal count = $ct\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need counter assistance
by Anonymous Monk on Aug 30, 2002 at 13:47 UTC | |
by RMGir (Prior) on Aug 30, 2002 at 13:55 UTC | |
by Anonymous Monk on Aug 30, 2002 at 14:01 UTC | |
by cfreak (Chaplain) on Aug 30, 2002 at 13:57 UTC |