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

Gaal Yahas gaal at forum2.org
Sun Jan 29 23:55:40 PST 2006


On Mon, Jan 30, 2006 at 09:51:38AM +0200, Jason Elbaum wrote:
> >         my @_ARGV = @ARGV;
> >         @ARGV = split /\s+/, shift;
> 
> There's another problem with this code. It doesn't parse the command
> line the way the shell does. The shell has special processing for
> quoted strings, stripping the quotes and making each quoted string
> into a single argument. Thus, this command line:

To make matters worse, different shells have different quoting rules.
Nobody doubts out loud that the world would have been a better place
had DOS quoting never existed, but it does; what ', ", and ` mean all
depend on who you're asking.

-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/



More information about the Perl mailing list