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.
In reply to using unpack by indapa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |