See @ARGV.
For example:
#!/usr/bin/perl use warnings; use strict; my $filename = shift @ARGV; open(FILE1, "<", $filename) or die "Unable to open '$filename': $!";
In reply to Re: Opening a File from the Command Line
by almut
in thread Opening a File from the Command Line
by dukea2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |