|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: A console output questionby strat (Canon) |
| on Jun 18, 2002 at 07:18 UTC ( [id://175339]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Btw: with a while(<...>) - loop, you can find out about the current line by reading the content of the special Variable $. as long as the Filehandle is still opened. But if you change the variable $/ , $. will give you the number of read blocks (what a block is, is said in $/ ).
Best regards,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||