http://www.perlmonks.org?node_id=821933

blackgoat has asked for the wisdom of the Perl Monks concerning the following question:

Hi!

I am toatally new to perl and I was going through a tutorial and came across the following piece of code:

$_ = '"Jones, James", "Smith, Susan", Spot'; use Text::ParseWords; @names = quotewords(",", 0, $_); print join(" &", @names);
output: Jones, James & Smith, Susan & Spot

I didnt quite understand what it it does and how exactly it works.

Could anybody pls be kind enough to explain!

Thank You