in reply to split on spaces, except those within quotes?

While an answer has already been provided, with very good suggestions from Kanji and cLive ;-), it would be remiss for the module Text::xSV written by our very own tilly not to be mentioned. This module provides an excellent interface for reading character separated data where quoted data may include character separators.

Additional information can also be found in the thread starting here.

 

perl -e 'print+unpack("N",pack("B32","00000000000000000000000111011101")),"\n"'

  • Comment on Re: split on spaces, except those within quotes?