in reply to Re: counter of files? something else?
in thread counter of files? something else?

I think you want: Plus you seem to get the sigils wrong - see the first part of → perldata:
@whatever is an array, a single element of that array is $whatever[123]. @whatever[123] is an array slice.

Replies are listed 'Best First'.
Re^3: counter of files? something else?
by fasoli (Beadle) on Apr 23, 2015 at 13:40 UTC

    - No, @files doesn't change through the loop.

    - That's a good point. I'll try it differently.

    - Ok, thank you for the suggestion.

    I'll try the two final bullet points!

    As for arrays/elements/slices: thank you, I normally get them right, I mixed it up a bit when trying to explain myself.