PetreAdi has asked for the wisdom of the Perl Monks concerning the following question:
For example, string "01234abc" would become array ("0123", "1234","234a","34ab","4abc")
I tried @array = $string =~ /(.{1,4})/g; but it doesn't seem to work.
Thank you.
|
|---|