定长切分大字符串

看我的测试:

QUOTE:
E:\Cmd\cutest>type sss.pl
$str='aaaabbbbccccddd';
@a = $str =~ /(.{4})/g;
print "\$str is : ",$str,"\n";
print "[$_]\n" for @a;

E:\Cmd\cutest>sss.pl
$str is : aaaabbbbccccddd
[aaaa]
[bbbb]
[cccc]

E:\Cmd\cutest>

那就举一反三一下嘛!
{1,4}
呵呵,学习了,默认都贪婪匹配