Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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 pondering the Monastery: (4)
As of 2015-10-07 03:17 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (170 votes), past polls