Re: [Perl-unix-users] parsing ARGV

2005-11-03 Thread listmail
sage - From: $Bill Luebkert <[EMAIL PROTECTED]> Date: Thursday, November 3, 2005 1:50 pm Subject: Re: [Perl-unix-users] parsing ARGV > [EMAIL PROTECTED] wrote: > > > Before I roll my own ARGV parse code I wanted to know if someone > had > > some sample code to get me s

Re: [Perl-unix-users] parsing ARGV

2005-11-03 Thread Jeff D
Take a look at the perl documentation for Getopt::Std (for letter type switches...i.e: "-s") and/or Getopt::Long (for word type switches ). I believe these modules are included with every standard Perl distribution. There are plenty of code samples in the documentation to get you rolling. HTH JD

RE: [Perl-unix-users] parsing ARGV

2005-11-03 Thread Peter Eisengrein
> Before I roll my own ARGV parse code I wanted to know if someone had > some sample code to get me started. I just want to be able to pass > simple switches that contain one parameter each to my perl > app. check out the Getopt module and all it's many variants.

Re: [Perl-unix-users] parsing ARGV

2005-11-03 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > Before I roll my own ARGV parse code I wanted to know if someone had > some sample code to get me started. I just want to be able to pass > simple switches that contain one parameter each to my perl app. I have > looked to the list first for I plan to accept the swi

Re: [Perl-unix-users] parsing ARGV

2005-11-03 Thread pDale
On 11/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Before I roll my own ARGV parse code I wanted to know if someone had > some sample code to get me started. Bring up a command prompt and type "perldoc Getopt::Long". Being a long-time Unix geek, I prefer Getopt::Std. -- HTH pDale "...in t