Perl:wrap simple routine?

Perl:wrap simple routine?

am 08.02.2007 15:34:50 von vjp2.at

On my unix ISP perl has Text:Wrap, but not on my PC (GNU v4)

Where can I find the simplest perl routine to take paragraphs of text
and reformat their column width?

- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://ourworld.compuserve.com/homepages/vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Remorse begets zeal] [Windows is for Bimbos]

Re: Perl:wrap simple routine?

am 08.02.2007 19:10:51 von Paul Lalli

On Feb 8, 9:34 am, vjp2...@at.BioStrategist.dot.dot.com wrote:
> On my unix ISP perl has Text:Wrap, but not on my PC (GNU v4)
>
> Where can I find the simplest perl routine to take paragraphs of text
> and reformat their column width?

I don't understand your question. You've already found it. It's
Text::Wrap. If you don't have it on your PC, just go get it.

perldoc -q install
Found in /opt/perl/lib/5.6.1/pod/perlfaq8.pod
How do I install a module from CPAN?

If you're using Windows on your PC, and Activestate's distribution of
Perl, just type
ppm Text::Wrap
at a command line.

Paul Lalli

Re: Perl:wrap simple routine?

am 09.02.2007 18:57:32 von Jim Gibson

In article ,
wrote:

> On my unix ISP perl has Text:Wrap, but not on my PC (GNU v4)

That would be "Text::Wrap".

>
> Where can I find the simplest perl routine to take paragraphs of text
> and reformat their column width?

Download and install the same module from CPAN
():

http://search.cpan.org/CPAN/authors/id/M/MU/MUIR/modules/Tex t-Tabs+Wrap-
2006.1117.tar.gz

On Linux, you can use the cpan program to do this easily:

cpan Text::Wrap

or

sudo cpan
cpan[1]> install Text::Wrap

or

sudo perl -MCPAN -e shell
cpan[1]> install Text::Wrap

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com