Chas. Owens wrote:
On Jan 21, 2008 4:30 PM, Kevin Viel <[EMAIL PROTECTED]> wrote:
snip
You placed another little gem in here for me to digest:

      $outer{$snp}{$_}++ for $genotype =~ /(.)/g; }
I guess when I conceive of that by myself, I should move to the intermediate
mailing list :)
snip

It could also have been

$outer{$snp}{$_}++ for split //, $genotype;

Or:

$outer{$snp}{$_}++ for $genotype =~ /./g;

In this case the parentheses are not required.


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to