in reply to spliting text!!
my $text = s{(\S{70})}{\1 }g;
This will add a space every 70 characters.
Update: Sorry I misread your question, did you what to split your string into an array or did you just want to space out a very long string?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: spliting text!!
by Trizor (Pilgrim) on Mar 08, 2007 at 21:16 UTC |