Re: value of variable switches from ' ' to 'value'

2007-06-17 Thread Mathew Snyder
Mumia W. wrote: > On 06/17/2007 12:36 AM, Mathew Snyder wrote: >> [...] >> In the debugger I've set the 'w' command to watch the variable >> containing the >> day being looked for ($day). I would have thought $day stays the same >> throught >> an iteration of the while loop but the debugger keeps

Re: value of variable switches from ' ' to 'value'

2007-06-17 Thread Mumia W.
On 06/17/2007 12:36 AM, Mathew Snyder wrote: [...] In the debugger I've set the 'w' command to watch the variable containing the day being looked for ($day). I would have thought $day stays the same throught an iteration of the while loop but the debugger keeps stopping to tell me it switched fr

value of variable switches from ' ' to 'value'

2007-06-16 Thread Mathew Snyder
I'm trying to figure out what exactly a script I wrote (see the attachment) is doing by stepping through it in the debugger. I have an array of dates in %Y-%m-%d format for each of the last 7 days. So, for instance, the range of dates for today (June 17, 2007) is from the 10th to the 16th. I the

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

2003-06-26 Thread Tim Johnson
etopt::Std to put the switches into a hash to use later. The options with a colon after them in the getopts() line take a parameter, and the other ones are on/off switches. An example command line would be: "myscript.pl -s SERVERNAME -o OUTFILE -v" ## use stric

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
\n$usagestring"; exit 1; } Hope it helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 1:04 PM To: [EMAIL PROTECTED] Subject: How to use command-line switches... I have a case where I need to use a command-line switch

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

How to use command-line switches...

2003-06-26 Thread Richard.C.1
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..." ?? I've searched but can't seem to find any concrete example that a newbie like me can use as

RE: PerlApp and commmand line switches

2002-07-29 Thread Jeff 'japhy' Pinyan
On Jul 29, Robert Smith said: >Running: "perl -s testOptions.pl --graphical" Don't use the -s switch to Perl if you're using a module to support command-line options. -s gets them first, and removes them from @ARGV (or rather, they never make it to @ARGV). If you print ${-graphical} in your pr

RE: PerlApp and commmand line switches

2002-07-29 Thread Robert Smith
Robert -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 10:30 AM To: Robert Smith; [EMAIL PROTECTED] Subject: RE: PerlApp and commmand line switches I use switches with my PerlApp .EXEs all the time. What are you using to handle the switch

RE: PerlApp and commmand line switches

2002-07-29 Thread Timothy Johnson
I use switches with my PerlApp .EXEs all the time. What are you using to handle the switches, GetOpt::XXX or a homegrown solution? -Original Message- From: Robert Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: PerlApp and commmand

PerlApp and commmand line switches

2002-07-29 Thread Robert Smith
Is there a way to feed a switch to a PerlApp generated .exe? I have a perl script that takes some command line arguments: For instance "perl -s myscript.pl -g -f" But when I generate a myscript.exe from PerlApp, the switches no longer function... i.e. "myscript.exe -

Re: creating custom switches in my program?

2002-03-07 Thread Tanton Gibbs
Sorry... use vars qw($opt_d); - Original Message - From: "M z" <[EMAIL PROTECTED]> To: "Tanton Gibbs" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 11:52 AM Subject: creating custom switches in my program? > Mr. Gi

creating custom switches in my program?

2002-03-07 Thread M z
t_d if -d was present. > > if( defined( $opt_d ) ) { > print "Option d was given!"; > } > else { > print "Option d was not given!"; > } > > Good luck! > Tanton > ----- Original Message - > From: "M z" <[EMAIL PROTECTED]>

RE: creating custom switches in my program?

2002-03-05 Thread Bill Akins
PROTECTED] Subject: creating custom switches in my program? Hello I was looking into documentation on the getopts module, but was having some difficulty understanding how to implement it. The scope of my problem is quite simple, actually. can someone help me create a snippet where if no argument is

creating custom switches in my program?

2002-03-05 Thread M z
Hello I was looking into documentation on the getopts module, but was having some difficulty understanding how to implement it. The scope of my problem is quite simple, actually. can someone help me create a snippet where if no argument is specified at the command line, than the output is writt

Re: Switches

2002-01-12 Thread Jeff 'japhy' Pinyan
On Jan 12, Naveen Parmar said: >Any site that provides details on the different command line switches? You have the documentation on your computer: perldoc perlrun -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brothe

Re: Switches

2002-01-12 Thread Briac Pilpré
In article <[EMAIL PROTECTED]>, Naveen Parmar wrote: > Any site that provides details on the different command line switches? No need to waste bandwidth when all the relevant infos are on your system! :) perldoc perlrun -- briac Bankei departs under an oak tree.

Re: Switches

2002-01-12 Thread Jonathan E. Paton
> Any site that provides details on the different > command line switches? You mean like www.perldoc.com? Also, try: perl -h Jonathan Paton __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Emai

Switches

2002-01-11 Thread Naveen Parmar
Any site that provides details on the different command line switches? Regds, - NP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: command line switches?

2001-06-04 Thread Paul
--- David Gilden <[EMAIL PROTECTED]> wrote: > Which perldoc will list the command line switches? perldoc perlrun SYNOPSIS perl [ -CsTuUWX ] [ -hv ] [ -V[:configvar] ] [ -cw ] [ -d[:debugger] ] [ -D[number/list] ] [ -pna ] [ -Fpattern ] [ -l[octal] ] [

Re: command line switches?

2001-06-04 Thread Hasanuddin Tamir
On Mon, 4 Jun 2001, David Gilden <[EMAIL PROTECTED]> wrote, > Which perldoc will list the command line switches? Ignore my previous post (if posted). I wrote "perlvar", but really meant "perlrun". That's if you want to do it with perldoc. But if you merel

Re: command line switches?

2001-06-04 Thread Hasanuddin Tamir
On Mon, 4 Jun 2001, David Gilden <[EMAIL PROTECTED]> wrote, > Which perldoc will list the command line switches? > Thanks perlvar s.a.n -- Hasanuddin Tamir: [EMAIL PROTECTED] - Trabas: www.trabas.com

Re: command line switches?

2001-06-04 Thread Jeff Pinyan
On Jun 4, David Gilden said: >Which perldoc will list the command line switches? Try 'perldoc perl', and you'll see listed: For ease of access, the Perl manual has been split up into a number of sections: perlPerl overview (this section)

command line switches?

2001-06-04 Thread David Gilden
Which perldoc will list the command line switches? Thanks Dave ** * Cora Connection Your West African Music Source * * http://www.coraconnection.com/ * * Resources, Recordings, Instruments & More! * **