Filter::NumberLines::Simple - Source filter for Numbering lines (using Filter::Simple).
Just put use Filter::NumberLines::Simple; at the top of your source file (below the shebang). It will automagically number your lines starting from the line after the use statement.
use Filter::NumberLines::Simple;
This module is used in the Source Filters in Perl talk I'm planning for YAPC::Eu 2.00.2 in Munich.
Filter::NumberLines::Simple requires Filter::Simple (which requires Filter::Util::Call)
Make number of digits in line number configurable.
This code is released under GPL (GNU Public License). More information can be found on http://www.gnu.org/copyleft/gpl.html
This is Filter::NumberLines::Simple 0.02.
Hendrik Van Belleghem (beatnik -at- quickndirty -dot- org)
GNU & GPL - http://www.gnu.org/copyleft/gpl.html
Filter::Simple - http://search.cpan.org/search?dist=Filter -Simple
Filter::Util::Call - http://search.cpan.org/search?dist=Filter
Paul Marquess' article on Source Filters - http://www.samag.com/documents/s=1287/sam03030004/
To install Filter::NumberLines, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Filter::NumberLines
CPAN shell
perl -MCPAN -e shell install Filter::NumberLines
For more information on module installation, please visit the detailed CPAN module installation guide.