Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: spliting text!!

by superfrink (Curate)
on Mar 09, 2007 at 06:32 UTC ( [id://603946]=note: print w/replies, xml ) Need Help??


in reply to Re: spliting text!!
in thread spliting text!!

I used Text::Wrap to display a list of quotations stored in a database. Sample code looks like:
#! /usr/bin/perl -w use strict; use Text::Wrap; my $quote = { ID => 308 , Author => "Someone" , Quote => "123456789_" x 10 }; local $Text::Wrap::columns = 71; # from (70 + 1) where 70 is the max +width print "\nQuote Number " . $quote->{"ID"} . ":\n" . wrap('', '', $quote->{"Quote"}) . "\n" . " - " . $quote->{"Author"} . "\n\n";
The output is:
Quote Number 308: 123456789_123456789_123456789_123456789_123456789_123456789_123456789_ 123456789_123456789_123456789_ - Someone

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603946]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found