- or download this
$ perl -E 'say for @ARGV' file_1 file_2
file_1
file_2
- or download this
$ perl -E 'my @x = @ARGV; say for @x' file_1 file_2
file_1
file_2
- or download this
$ perl -E 'say for @ARGV' -file_1 -file_2
-i used with no filenames on the command line, reading from STDIN.
- or download this
$ perl -E 'say for @ARGV' -- -file_1 -file_2
-file_1
-file_2