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'
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
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
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
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
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
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
---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/
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
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";
&
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
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
12 matches
Mail list logo