Just for oddity. One-linedness is a cheat and needs 5.8 to do the string-as-file magic. {local $/ = \$n; open my $vfh, '<', \$field; @foo = <$vfh>;}
After Compline,
Zaxo
In reply to Re: One liner: split fixed-width field into equal length chunks...
by Zaxo
in thread One liner: split fixed-width field into equal length chunks...
by mr. jaggers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |