I am a novice in this field. Please help me identify the mistake in this code to use GetOptions. I am using Windows OS (Win8.1)
#!/C:/Perl64/bin/perl
require 5.16.3;
# use strict;
use warnings;
undef $/;
use Getopt::Long;
my $file= '';
GetOptions('filename|f=s' => \$file);
# I am keeping a Seq file in the same folder
open(IN, $file) or die "Cannot Read $file: $file$!\n";
my $data= ;
my $a= ($data =~ tr/A//);
my $t= ($data =~ tr/T//);
my $g= ($data =~ tr/G//);
my $c= ($data =~ tr/C//);
my$Total= ($a+$t+$g+$c);
my $gc= (($g+$c)/($Total))*100;
print "A: $a\n";
print "T: $t\n";
print "G: $g\n";
print "C: $c\n";
print "Total: $Total\n";
print "GC-Content: $gc\n";
printf "GC-Content: %6.3f%\n", $gc."\n";