Below is the snippet that works,
open(C, "Inputfile.txt") || die "Cannot open the file\n";
use List::MoreUtils qw(uniq);
use Math::Round
while(<C>)
I wish to pass the file name in command line. I tried to use ARGV but it is not working. I modified it to:
use List::MoreUtils qw(uniq);
my $filename = $ARGV[1];
while($filename)
When I execute it with
perl file.pl inputfile.txt
I do not get any output. Can anyone say, why it is not working ?
Thanks,
AP