Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Dealing With Records in Perl

Nov 30, 2009, 23:34 (0 Talkback[s])
(Other stories by Juliet Kemp)

"The first is the special variable $.. $. keeps track of your current record number while iterating through a file. Thus:

while() {
    print "Current line number is $. n";
}

Complete Story

Related Stories: