Text-FixedWidth
Easy OO manipulation of fixed width text files.
use Text::FixedWidth;
my $fw = new Text::FixedWidth;
$fw->set_attributes(qw(
fname undef %10s
lname undef %-10s
points 0 %04d
));
$fw->parse(string => ' JayHannah 0003');
$fw->get_fname; # Jay
$fw->get_lname; # Hannah
$fw->get_points; # 0003
$fw->set_fname('Chuck');
$fw->set_lname('Norris');
$fw->set_points(17);
$fw->string; # ' ChuckNorris 0017'
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Text::FixedWidth
You can also look for information at:
https://metacpan.org/module/Text::FixedWidth
COPYRIGHT AND LICENCE
Copyright (C) 2008-2013 Jay Hannah
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.