Hi!
Try this out: #!c:\perl\bin\perl.exe -w use strict; my $param1 = $ARGV[0]; printf ($param1); if you run: perl runme.pl para1 para2 para3 the output is only: para1 H.Heggen >>-----Ursprüngliche Nachricht----- >>Von: phumes1 [mailto:[EMAIL PROTECTED]] >>Gesendet: Mittwoch, 12. Juni 2002 15:49 >>An: [EMAIL PROTECTED] >>Betreff: 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]