c0bra has asked for the wisdom of the Perl Monks concerning the following question:
my $valstring = join('|', @valarray); my @elems = (); my $len = 100; my $count = 0; do { my $string = substr($valstring, 100*$count, 100); push(@elems, $string); $count++; $len = 100*$count; } while ($len < length $valstring);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Strange substr Problem
by merlyn (Sage) on Mar 13, 2003 at 15:44 UTC | |
by c0bra (Acolyte) on Mar 13, 2003 at 16:20 UTC | |
|
Re: Strange substr Problem
by c0bra (Acolyte) on Mar 13, 2003 at 18:18 UTC | |
by BrowserUk (Patriarch) on Mar 14, 2003 at 01:31 UTC | |
|
Re: Strange substr Problem
by pg (Canon) on Mar 13, 2003 at 16:02 UTC | |
|
Re: Strange substr Problem
by zby (Vicar) on Mar 13, 2003 at 16:28 UTC | |
by c0bra (Acolyte) on Mar 13, 2003 at 18:16 UTC |