* Ramis <[EMAIL PROTECTED]> [2002-04-15 22:14 +0200]: > I want to get a file name from command line
Perl pushes then to a list named @ARGV . So you can access them with any function that operates on lists, like foreach, shift, pop or just $ARGV[n] . > How it realizes with several files: somecommand.pl file1,file2... foreach $file (@ARGV) { process($file); } If the files passed as arguments just contain lines of text and you're rather interested in those lines than their filenames, you can also read them from the null filehandle: while (<>) { print "got line: $_"; } man perlop for more info this. -- Johannes Franken Professional unix/network development mailto:[EMAIL PROTECTED] http://www.jfranken.de/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]