HI
I am trying to print a certain number of sequences from a file.
So if the sequence is like
LKSAJDLSAJDLSAJDLKSJD.
then I want to write from 10th character to 20th character.
please help. Here is my code
#!/usr/bin/perl -w
use strict;
use warnings;
my ($fileName, $firstSequence, $lastSequence) = @ARGV;
open IN, "< $fileName" || die "Can't open $fileName";
while(<IN>) {
chomp;
my @line = split(/\t/, $_);
# print $line[0];
print $line[$firstSequence..$lastSequence];
# print $line[$lastsequence];
}
close(IN);
exit;