Perl Programming/Keywords/ LINE

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: __FILE__ Keywords Next: __PACKAGE__

The __LINE__ keyword

[edit | edit source]

__LINE__ is a special token that returns the current line number.

Syntax

[edit | edit source]
  __LINE__
Previous: __FILE__ Keywords Next: __PACKAGE__