my @chunks = unpack "(A5)*", "a(b)cd(e)f"; print $chunks[0], "\n"; print $chunks[1], "\n"; __END__ a(b)c d(e)f
In reply to Re: Split a string into items of constant length
by Perl Mouse
in thread Split a string into items of constant length
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |