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

Levenglick Dov-RM07994 Dov at freescale.com
Sun Jan 29 13:52:36 PST 2006

use Getopt::Long::String;

my $string = '-opt1 val1 -opt2 val2 -flag3';
$result = GetOptions ($string, ...option-descriptions...);

Best Regards,
Dov Levenglick
DSP SoC System and Applications Engineer,
Network and Computing Systems Group
Freescale Semiconductor Israel
Tel. +972-9-952-2804
The information contained in this email is classified as:
[ ] General Business Information
[ ] Freescale Internal Use Only
[ ] Freescale Confidential Propriety
[x] Personal Memorandum

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf Of Gabor Szabo
Sent: Sunday, January 29, 2006 11:50 PM
To: Perl in Israel
Subject: Re: [Israel.pm] new module for CPAN: Getopt::Long::String

On 1/29/06, Levenglick Dov-RM07994 <Dov at freescale.com> wrote:
> Hi,
> A friend asked me whether there is a sting parser that works like a command line operator (Getopt::...) and when I couldn't find one on CPAN I wrote this module.
> Please give me your input since I want to load it to CPAN. The Pod (not copied here entirely) DESCRIPTION describes this as:
> The Getopt::Long::String module uses Getopt::Long in order to provide parsing abilities for command strings (as opposed to command lines). This proves useful when your script is a wrapper for other scripts or programs and you have options that are not passed in @ARGV.

I am not sure I got this right.
Could tou share the API with us or the synosis ?
How would one use the module ?


Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list