in reply to extract options from a simple string

Here is another one, which may be of interest in a light of that task: alternate parsing method for options
I start 80% of my small utilities programs with that lines and found them convenient enough.

Best wishes,
svad

  • Comment on Re: •extract options from a simple string

Replies are listed 'Best First'.
•Re: Re: •extract options from a simple string
by merlyn (Sage) on Jul 01, 2002 at 14:35 UTC
    Ahh, but that one's looking at an already split @ARGV, for which there are dozens of solutions (even some I've hand-rolled). The poster wanted something that comes from a single string.

    -- Randal L. Schwartz, Perl hacker

      I definitively need glasses if I'm going to read that code snippet...or a bigger monitor...

      #!s #!s, oh baby when she moves, she moves...