I have a Perl script which takes both command line arguments and STDIN
#!/usr/bin/perl -w
use strict;
use warnings;
my $logpath = $ARGV[0];
print "logpath : $logpath\n";
print "Name : ";
my $name = <>;
chomp($name);
print "my name is $name\n";
It does not stop at stdin input. Works fine for any one of command line or standard input but not for both.
Any Reason?