perlquestion
mikkoi
<p>I need to parse the arguments of a custom command.
<p>The arguments are separated by whitespace except when they have quotation marks around them.
<p>Example:
<p>23 45.67 "John Marcus" Surname</p>
<p>After parsing it, it should result in <code>[23, 45.67, 'John Marcus', 'Surname']</code>.
Would it be better to use a lexer or regex? If lexer, any good modules in CPAN?