#!/usr/bin/perl -w use strict; $| = 1; use Futils; use Text::Wrap; my($f) = Futils->new(); my(%in) = (); while (my($n,$v) = splice(@ARGV,0,2)) { $in{ $n } = $v } my($infile) = $in{'--infile'} || ''; my($outfile) = $in{'--outfile'} || ''; my($cols) = $in{'--cols'} || 80; $infile = shift(@ARGV) unless $infile; $Text::Wrap::columns = $cols || 80; my($cont) = wrap('','',$f->load_file($infile)); $outfile ? $f->write_file('file' => $outfile, 'content' => $cont) : print $cont; print(<<__DONE__); Done. __DONE__ =pod AUTHOR Tommy Butler phone: (817)-468-7716 6711 Forest Park Dr Arlington, TX 76001-8403 COPYRIGHT Tommy Butler. All rights reserved LISCENCE This software is free, use/distribute under the GNU GPL. BUGS TO Tommy Butler This code uses Futils, a Perl module (or reusable code library) to make life easier when doing things with files. You can download the code at: Futils uses other modules, which may be also be found here at the ooOPps Open Source Code Library under the "modules" section. Refer to the itemized list below for more specific information: "Handy::Dandy" used by: Futils file name Dandy.pm get it at: /pub/modules/Handy/Dandy.pm "OOorNo" used by: Futils, Handy::Dandy file name: OOorNo.pm get it at: /pub/modules/OOorNo.pm "Handy::Dandy::TimeTools" used by: Handy::Dandy file name: TimeTools.pm get it at: /pub/modules/Handy/Dandy/TimeTools.pm =cut