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:
-
Freeing disk space with ">"(Nov 19, 2009)
- Tech Tip: Find Directories Over a Certain Size(Nov 17, 2009)
- Perl far from dead, more popular than you think(Nov 08, 2009)
- Perl 5.11.0 now available(Oct 05, 2009)
- Italian Perl Workshop 2009 and YAPC:EU 2010(Sep 20, 2009)
- Installing Perl modules without root access(Aug 31, 2009)
- Dynamically creating gui objects on demand in Perl(Jun 12, 2009)
- 5 resources for learning Perl Graphical Programming(Jun 02, 2009)
- Starting perl GUI programming(May 07, 2009)