For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > November 2007 > Re: Question abount counting the total number of lines and put to an variable?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Question abount counting the total number of lines and put to an variable?
Tom Phoenix

2007-11-29, 7:02 pm

On 11/29/07, Marco <marco@us.nanya.com> wrote:

> Is there any way that I can get the total of lines that show on the
> screen and put to a variable?


Yes; you can keep a running count as you print the lines. Each time
you print a line, you add one to the count of lines. Is that all you
needed? Cheers!

--Tom Phoenix
Stonehenge Perl Training
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com