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
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
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
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
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
-
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
\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
[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
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
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
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
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
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 -
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
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]>
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
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
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
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.
> 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
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
--- 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] ] [
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
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
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)
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! *
**
26 matches
Mail list logo