[Israel.pm] new module for CPAN: Getopt::Long::String

Mikhael Goikhman migo at homemail.com
Mon Jan 30 15:38:48 PST 2006


On 31 Jan 2006 00:43:23 +0200, Yuval Kogman wrote:
> 
> On Mon, Jan 30, 2006 at 20:35:12 +0000, Mikhael Goikhman wrote:
> > 
> > If the task is to parse the command line, like the shell does, then both
> > shellwords and string2list are equally useless. Even simple input may
> > produce unexpected result (at, least I didn't expect it before running):
> > 
> >   print "[$_]\n" foreach shellwords(q{ date });
> 
> This one is indeed very odd
> 
> >   print "[$_]\n" foreach shellwords(q{\""});
> 
> This one is expected - there are unbalanced parenthesis here.

I expected to get either an error or the unparsed part in one item.
It was suprising that the function silently removes the unparsed part.

Regards,
Mikhael.

-- 
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'



More information about the Perl mailing list