David Muir Sharnoff > Eval-LineNumbers-0.31 > Eval::LineNumbers

Download:
modules/Eval-LineNumbers-0.31.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.31   Source   Latest Release: Eval-LineNumbers-0.34

NAME ^

Eval::LineNumbers - Add line numbers to hereis blocks that contain perl source code

SYNOPSIS ^

 use Eval::LineNumbers qw(eval_line_numbes);

 eval eval_line_numbers(<<END_HEREIS);
   code
 END_HEREIS

DESCRIPTION ^

Add a #line "this-file" 392 comment to hereis text that is going to be eval'ed so that error messages wil point back to the right place.

Please note: when you embed \n in your code, it gets expanded in double-quote hereis documents so it will mess up your line numbering. Use \\n instead when you can.

LICENSE ^

This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.

syntax highlighting: