@ARGV contains all of the arguments passed, and you only want to print the first, so you need to specify that.
$test = "$2 $ARGV[0]"; # 0 is the first element Rob -----Original Message----- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 9:49 AM To: [EMAIL PROTECTED] Subject: Using ARGV I need to print the filename to the screen. C:\>runme.pl <filename> <output-device> I have the following in my script: $test = "$2 @ARGV"; print "Results: $test\n"; Which output: <filename> <output-device> I require just the <filename> Should I be using an array for this or substr? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]