sub get_exon { return substr($_[0], $_[1] - 1, $_[2] - $_[1] + 1); }
Note that by using $_[0] directly, you're accessing $chromosome without copying it. This is because the @_ array is aliased to the parameters passed. So this saves you a reference and a dereference on top of the savings that you would have when passing a reference, while you lose out on readability.
Liz
In reply to Re: Large data processing ...
by liz
in thread Large data processing ...
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |