Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!sun-barr!newstop!sun!stef From: stef@zweig.sun (Stephane Payrard) Newsgroups: comp.lang.perl Subject: perl -x take argument as a filename (bug or feature?) Message-ID: Date: 14 Aug 90 00:28:14 GMT Sender: news@sun.Eng.Sun.COM Distribution: comp.lang.perl Organization: Sun Microsystems -- Mountain View Lines: 24 Assumiong there is no file named argument in the current directory, pipe this article in 'perl -x argument'. The output is: Can't open perl script "argument": No such file or directory I would have been expected the string 'argument' to be printed. The script executed being the embedded script, it makes non sense to expect a filename as argument. In this respect, the -x switch should behave like the -e switch. #! /usr/bin/perl print $ARGV[0]; __END__ stef -- Stephane Payrard -- stef@sun.com -- (415) 336 3726 Sun Microsystems -- 2550 Garcia Avenue -- M/S 10-09 -- Mountain View CA 94043