Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Let's get lazy

by dga (Hermit)
on Aug 28, 2001 at 23:05 UTC ( #108551=note: print w/ replies, xml ) Need Help??

in reply to Let's get lazy

I posted a reply to the same post.

I was thinking a really lazy way to do this would be to make up a locale with just the ACGNT letters and then have to magic autoincrement operator just do the Right Thing.

use POSIX qw(locale_h); setlocale(LC_ALL, "DNA"); use locale; my @twos=(AA..TT); #with all above working @twos would be AA AC AG AN AT CA CC CG etc.

So my question for the folks in the know is does the autoincrementer use locale?
Has anyone defined a DNA locale?

Comment on Re: Let's get lazy
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://108551]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2015-11-28 11:10 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls