I cannot resist to provide my take on it as well...
use strict; use warnings; my $_ = "AAAGCCCCTTTAAACCCCxxxxxx"; my %h; $h{$_}++ for /./g; print "ACGT only: ", join " ", @h{qw(A C G T)}, "\n"; print "All chars: ", join " ", @h{sort keys%h}, "\n";
In reply to Re: Entering the land of Perl
by hdb
in thread Entering the land of Perl
by manbroski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |