Some Perl Special Variables Some Global Special Variables 6 of 28 : [PREV] [NEXT]

$. ($INPUT_LINE_NUMBER or $NR)

  • The current input record number of the last filehandle that was read.
  while (<FH>) {
      printf "%3d %s", $., $_;
  }

© 2004 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/