Blog Archive

Wednesday, November 17, 2010

__LINE__ equivalent for Linux shell: $LINENO

The $LINENO variable returns the line in which that variable is used.


Perl Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__FILE__ $0
__LINE__ $LINENO

No comments:

Post a Comment