in reply to Array - Reading frame problem
The first argument to split in this case is an empty regex, which happens to have the effect of splitting the input string at every character.my $sequence = "1234567890"; my @chrsequence = split //, $sequence; print "array has " . scalar @chrsequence . " elements: @chrsequence\n" +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array - Reading frame problem
by Nadiah (Novice) on Jul 16, 2005 at 15:33 UTC | |
by graff (Chancellor) on Jul 16, 2005 at 16:37 UTC | |
by holli (Abbot) on Jul 16, 2005 at 16:42 UTC |