in reply to Array - Reading frame problem
Do you mean that you want the string to do this:
0123456789 123456789 23456789 3456789 456789 56789 6789 789 89 9
use strict; use warnings; my $sequence = "0123456789"; my @frames; while ($sequence) { push @frames, $sequence; $sequence = substr $sequence, 1; } print join "\n", @frames;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array - Reading frame problem
by Nadiah (Novice) on Jul 16, 2005 at 13:52 UTC | |
by stajich (Chaplain) on Jul 16, 2005 at 14:39 UTC |