RE: How to use command-line switches...

2003-06-26 Thread Tim Johnson
2003 11:48 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: How to use command-line switches... Richard here is an example of code that gets the switch variables from the command line and checks it before continuing with the script. The shift function is operating on the @_ array and

RE: How to use command-line switches...

2003-06-26 Thread Miller, Joseph S
No problem, glad to help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 1:56 PM To: Miller, Joseph S; [EMAIL PROTECTED] Subject: RE: How to use command-line switches... Thank you! This is exactly what I need. The 17 pages in the

RE: How to use command-line switches...

2003-06-26 Thread Richard.C.1
- From: Miller, Joseph S [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 2:48 PM To: Copits Richard; [EMAIL PROTECTED] Subject: RE: How to use command-line switches... Richard here is an example of code that gets the switch variables from the command line and checks it before

RE: How to use command-line switches...

2003-06-26 Thread Miller, Joseph S
Richard here is an example of code that gets the switch variables from the command line and checks it before continuing with the script. The shift function is operating on the @_ array and the @_ array contains the parameters passed to that subroutine from the command line(reference perlvar).

Re: How to use command-line switches...

2003-06-26 Thread Brett W. McCoy
[EMAIL PROTECTED] wrote: I have a case where I need to use a command-line switch such as -X or /x Could anyone help me with information as to how I read this into a perl script and test it - along the lines of "if "/x" then..." ?? perldoc Getopt::Std and perldoc Getopt::Long -- Brett -- To