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)


How to Help Your Business Become an AI Early Adopter

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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.