in reply to One liner: split fixed-width field into equal length chunks...

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

  • Comment on Re: One liner: split fixed-width field into equal length chunks...
  • Download Code