A few typos to correct

line 24 - remove double " 
#open my $fileone, '<', "$folder/$file" or die ""$folder/$file": $!";
open my $fileone, '<', "$folder/$file" or die "$folder/$file: $!";


line 44 - same
#open my $trf, '<', "$folder/$trftable" or die ""$folder/$trftable": $!";
open my $trf, '<', "$folder/$trftable" or die "$folder/$trftable: $!";
	

line 46 remove undef
#undef = <$trf> for 1 .. 4;
<$trf> for 1 .. 4;

line 49 add declare here to expand scope of variable
my $tRNAname;	

line 57 - remove my
#my $tRNAname=$line[0];
$tRNAname=$line[0];

line 63 remove my
#my $tRNAname=$line[0];
$tRNAname=$line[0];

line 68 - remove my  ( as %hash declared earlier )
#my $hash{$tRNAname}{"5p-tR-halves"}+=$line1/$reads*1000000;
$hash{$tRNAname}{"5p-tR-halves"}+=$line1/$reads*1000000;

line 69 - change $merge after $folder to merge
#open my $merge,">>","$folder/$merge" or die "Could not open $folder/$merge : $!";
open my $merge,">>","$folder/merge" or die "Could not open $folder/merge : $!";

line 84..94 change MERGE to $merge
print MERGE $tRNAname; # print tRNA name
foreach my $tRF_type(@tRF_types) 
 {
	print MERGE"\t$hash{$tRNAname}{$tRF_type}"; # print counts for each tRF type separated by tab
 }
print MERGE"\n";# print newline
}
close TRF;
close MERGE;
close DIR;
poj

In reply to Re^2: Skript help needed - RegEx & Hashes by poj
in thread Skript help needed - RegEx & Hashes by PandaRaey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.