in reply to What is the most efficient way to split a long string (see body for details/constraints)?

Crossposted to StackOverflow. Crossposting is OK, but it's considered polite to inform about it to prevent unnecessary work of people not attending both sites.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re: What is the most efficient way to split a long string (see body for details/constraints)?
  • Download Code