Skip to content

Text::FixedWidth - Easy OO manipulation of fixed width text files

Notifications You must be signed in to change notification settings

jhannah/text-fixedwidth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Text::FixedWidth - Easy OO manipulation of fixed width text files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages