in reply to Re: How to amend character count.
in thread How to amend character count.

for(@lines) has no advantage over while (<>) here, it's slower and takes more memory.

Replies are listed 'Best First'.
Re^3: How to amend character count.
by thanos1983 (Parson) on May 07, 2017 at 21:00 UTC

    Hello Anonymous Monk,

    I had no clue about that, the only reason that I would use like this is to save some coding lines.

    But if while (<>) is faster then the obvious solution would be this.

    Thanks for providing this information.

    Seeking for Perl wisdom...on the process of learning...not there...yet!