You want to print the array ARGV and not the variable ARGV
For all command line arguments
print @ARVG
For the first command line argument,
print $ARGV[0]
__
William Ampeh (x3939)
Federal Reserve Board
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
> -Original Message-
> From: Booher Timothy B 1stLt AFRL/MNAC
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 7:37 PM
> To: [EMAIL PROTECTED]
> Subject: can't print input argument
>
>
> Hello - more trouble, I just can't seem
ay, February 12, 2002 4:37 PM
> To: [EMAIL PROTECTED]
> Subject: can't print input argument
> Hello - more trouble, I just can't seem to write a program that prints an
> argument it's passed:
> My script contains:
> #not working
> print "$ARGV\n";
&
:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: can't print input argument
Hello - more trouble, I just can't seem to write a program that prints an
argument it's passed:
My script contains:
#not working
print "$ARGV\n";
TED]]
> Sent: Tuesday, February 12, 2002 4:58 PM
> To: 'Booher Timothy B 1stLt AFRL/MNAC'; [EMAIL PROTECTED]
> Subject: RE: can't print input argument
>
>
> If you don't know how many there will be you can try
> something like:
>
> printf
-Original Message-
From: Booher Timothy B 1stLt AFRL/MNAC
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 16:37
To: [EMAIL PROTECTED]
Subject: can't print input argument
Hello - more trouble, I just can't seem to write a program that prints an
argument it'
AFRL/MNAC
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: can't print input argument
Hello - more trouble, I just can't seem to write a program that prints an
argument it's passed:
My script contains:
#not working
print "
Hello - more trouble, I just can't seem to write a program that prints an
argument it's passed:
My script contains:
#not working
print "$ARGV\n";
when I run this I get:
c:\work.pl "this"
c:\
confused by this but also confused that I can't run anything from the
command line in windows.