Perl Programming/Keywords/ LINE

Previous: __FILE__ Keywords Next: __PACKAGE__

The __LINE__ keyword

edit

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

Syntax

edit
  __LINE__
Previous: __FILE__ Keywords Next: __PACKAGE__