use File::Basename; $infile_name = shift(@ARGV); if ( ! -r $infile_name) { print STDERR "1.Cannot read $infile_name\n"; exit 99; }