J
J Krugman
OK, here's a little problem that I'd like to propose in the Perl
golf (mini-golf?) vein.
Given a string $x that we may assume contains no newline characters,
split it into chunks of $n characters long separated my newlines.
E.g. if $n == 2,
'fu'
'fubar' ---> 'ba'
'r'
What's the most succinct Perl to achive this end-result?
Thanks,
jill
golf (mini-golf?) vein.
Given a string $x that we may assume contains no newline characters,
split it into chunks of $n characters long separated my newlines.
E.g. if $n == 2,
'fu'
'fubar' ---> 'ba'
'r'
What's the most succinct Perl to achive this end-result?
Thanks,
jill