in reply to Process string as Array
$string = 'foo' x 2048; $n = 1024; # $n is group size. @groups = unpack "a$n" x ((length($string)/$n)-1) . "a*", $string; print join("\n\n\n",@groups),"\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Process string as Array
by Somni (Friar) on May 29, 2004 at 15:29 UTC |