tkguifan has asked for the wisdom of the Perl Monks concerning the following question:
# input my $input='rnbqkbnrpppppppp PPPPPPPPRNB +QKBNR'; # desired output: my @array; $array[0]='rnbqkbnr'; $array[1]='pppppppp'; $array[2]=' '; $array[3]=' '; $array[4]=' '; $array[5]=' '; $array[6]='PPPPPPPP'; $array[7]='RNBQKBNR';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can one decompose a string into an array of 8 character blocks?
by ikegami (Patriarch) on Feb 03, 2015 at 14:03 UTC | |
|
Re: How can one decompose a string into an array of 8 character blocks?
by choroba (Cardinal) on Feb 03, 2015 at 14:05 UTC | |
by LanX (Saint) on Feb 03, 2015 at 14:12 UTC | |
by choroba (Cardinal) on Feb 03, 2015 at 14:14 UTC | |
by LanX (Saint) on Feb 03, 2015 at 14:26 UTC | |
|
Re: How can one decompose a string into an array of 8 character blocks?
by Discipulus (Canon) on Feb 04, 2015 at 10:13 UTC |