-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 to write a program
that prints an
argument it's
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,
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.
[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 $ARGV\n;
when I run this I get
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's passed:
My script contains
, 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 %-s x scalar(@ARGV), @ARGV;
# @ARGV is what you check when seeking arguments from
, 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;
when I run this I get:
c:\work.pl this
c:\
confused
of
command-line switches that can be used.
ta,
daniel
but again, I don't use the command-line all that much.
-Original Message-
From: Booher Timothy B 1stLt AFRL/MNAC
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: can't print input