in reply to trivial wrapping
The non destructive method ;)#! perl -sw use strict; my @strings = map{"$_" x 200} 1 .. 3; for (my $x=0; $x<length($strings[0]); $x+=60) { print join("\n",map(substr( $strings[$_],$x,60),0..2))."\n\n"; }
Hope it helps
UnderMine
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: trivial wrapping
by Anonymous Monk on Nov 18, 2002 at 16:25 UTC | |
by clairudjinn (Beadle) on Nov 18, 2002 at 16:53 UTC |