indapa has asked for the wisdom of the Perl Monks concerning the following question:
My thinking was that the array would have the list of 10-length substrings taken from $some_string. But it appears that you cannot assign the result of unpack to an array. What I get is just the first 10 characters of the string.@a = unpack(A10, $some_string);
Is there a way to work around this? I have list of of length >300, that I want to print out in length 10 substrings.
Thanks for the help.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using unpack
by Albannach (Monsignor) on Apr 18, 2001 at 06:15 UTC | |
Re: using unpack
by I0 (Priest) on Apr 18, 2001 at 04:11 UTC | |
by greenFox (Vicar) on Apr 18, 2001 at 05:21 UTC | |
by I0 (Priest) on Apr 24, 2001 at 11:34 UTC |