Re: Command Line Args

2002-02-11 Thread Michael Fowler
On Mon, Feb 11, 2002 at 02:11:09PM -0500, Balint, Jess wrote: > What is the deal behind this 'package vars' vs 'lexical vars'. I have used > (my) to declare variables in the past and was wondering what the difference > was between these two declarations. Thanks. I'm surprised no one has answered

RE: command line args in Windows 2000

2002-01-08 Thread Wagner-David
this area concerning file type setups. W/o the setup above, @ARGV ( Std way under w2k to params/arguments) from the command line will not work. Wags ;) -Original Message- From: Rich Rochelle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 18:04 To: [EMAIL PROTECTED] Subject: command li

command line args in Windows 2000

2002-01-08 Thread Rich Rochelle
Hi, I have no idea how much traffic is on this list, and I have searched all day for an answer to this question. How do I pass command line arguments to Perl under Windows 2000? I have the following code snippet: &GetOptions("size=s"); print "\nsize is $opt_size\n"; exit; $opt_size never appe

RE: command line args

2001-10-26 Thread Wagner-David
$secondvar = 'Nothing passed'; }elsif ( ! defined $secondvar ) { $secondvar = 'Nothing passed'; } Wags ;) -Original Message- From: Mike Gargiullo [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 09:58 To: [EMAIL PROTECTED] Subject

command line args

2001-10-26 Thread Mike Gargiullo
How do I pass and use arguments into the command line? such as; > myprogram var1 var2 where the program would read as follows #!/usr/bin/perl -w $firstvar = shift(@args); $secondvar = shift(@args); print STDOUT "$firstvar";

Re: passing command line args into a scalar/array

2001-08-21 Thread register
I have not used Getopt for a long time but I think the answer to your problem does not exactly lie with Perl ... it is probably more shell related ... if u put yourself in the shoes of the shell interpreter and look at the commandline u mentioned below then why would u think that tac and toe were

passing command line args into a scalar/array

2001-08-21 Thread Salvador Lopez
Using Getopt::Long, how can i pass a value that is a list into an scalar or array? In the following example, I would like 'tic tac toe' to be assigned to a scalar or array variable. ./perlscript.pl --arg1 foo --arg2 tic tac toe GetOptions( "arg1:s" => \$arg1, "arg2:s" => \$arg2); # $arg1 now co