Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 52 lines (33 sloc) 1.107 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
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.

Something went wrong with that request. Please try again.