Re: Confused about supplying command line arguments and using @ARGV

2004-06-04 Thread Jenda Krynicky
From: "Dennis G. Wicks" <[EMAIL PROTECTED]> > I just did extensive testing using ActiveState perl on XP-Pro > and I get the exact same results. > > C:\DATAFI~1>argv.pl testfile > > gives the unitialized variable message but > > C:\DATAFI~1>perl argv.pl testfile > > works as expected. It ain'

Re: Confused about supplying command line arguments and using @ARGV

2004-06-04 Thread David Kirol
08:29:45 -0400 (EDT) > > From: Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> > > Reply-To: [EMAIL PROTECTED] > > To: Larry Wissink <[EMAIL PROTECTED]> > > Cc: [EMAIL PROTECTED] > > Subject: Re: Confused about supplying command line argum

RE: Confused about supplying command line arguments and using @ARGV

2004-06-04 Thread Larry Wissink
y' Pinyan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 5:30 AM To: Larry Wissink Cc: [EMAIL PROTECTED] Subject: Re: Confused about supplying command line arguments and using @ARGV On Jun 2, Larry Wissink said: >I want to supply the name of a file on the command line when executing

Re: Confused about supplying command line arguments and using @ARGV

2004-06-03 Thread Dennis G. Wicks
400 (EDT) > From: Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: Larry Wissink <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: Confused about supplying command line arguments and using > @ARGV > > On Jun 2, Larry

Re: Confused about supplying command line arguments and using @ARGV

2004-06-03 Thread Jeff 'japhy' Pinyan
On Jun 2, Larry Wissink said: >I want to supply the name of a file on the command line when executing a >script. Unfortunately, I'm getting an error that says that @ARGV is >uninitialized. > >How do you initialize @ARGV? How do you specify command line arguments? You don't initialize @ARGV. It

Confused about supplying command line arguments and using @ARGV

2004-06-03 Thread Larry Wissink
Hi, I thought this would be simple... I want to supply the name of a file on the command line when executing a script. Unfortunately, I'm getting an error that says that @ARGV is uninitialized. How do you initialize @ARGV? How do you specify command line arguments? I'm using Windows XP, ac

RE: using @ARGV to get user-defined arguments

2003-05-28 Thread Bob Showalter
cbgb wrote: > ATM I can use @ARGV by forcing it to read specified files > (see sample below). But how can I turn it into a subroutine > that accepts any filenames and can be called within a script, eg: > &myroutine("fileA","fileB") ? > > thanks > Chris > > > #!/usr/bin/perl -Tw > > @ARGV=("te

using @ARGV to get user-defined arguments

2003-05-28 Thread cbgb
---apologies if this turns out to be a double-posting--- ATM I can use @ARGV by forcing it to read specified files (see sample below). But how can I turn it into a subroutine that accepts any filenames and can be called within a script, eg: &myroutine("fileA","fileB") ? thanks Chris #!/usr/bin/

using @ARGV to get user-defined arguments

2003-05-28 Thread cbgb
ATM I can use @ARGV by forcing it to read specified files (see sample below). But how can I turn it into a subroutine that accepts any filenames and can be called within a script, eg: &myroutine("fileA","fileB") ? thanks Chris #!/usr/bin/perl -Tw @ARGV=("textfile","craig"); foreach $arg (@ARGV

AW: Using ARGV

2002-06-12 Thread Heiko Heggen
och, 12. Juni 2002 15:49 >>An: [EMAIL PROTECTED] >>Betreff: Using ARGV >> >> >> >>I need to print the filename to the screen. >> >>C:\>runme.pl >> >>I have the following in my script: >> >>$test = "$2 @ARGV"; &

RE: Using ARGV

2002-06-12 Thread Hanson, Robert
PROTECTED] Subject: Using ARGV I need to print the filename to the screen. C:\>runme.pl I have the following in my script: $test = "$2 @ARGV"; print "Results: $test\n"; Which output: I require just the Should I be using an array for this or substr? -- To unsu

Using ARGV

2002-06-12 Thread phumes1
I need to print the filename to the screen. C:\>runme.pl I have the following in my script: $test = "$2 @ARGV"; print "Results: $test\n"; Which output: I require just the Should I be using an array for this or substr? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm