Linux Today: Linux News On Internet Time.

More on LinuxToday

Dealing With Records in Perl

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


Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers

"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: