Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to expand a string

by BrowserUk (Patriarch)
on Nov 29, 2007 at 16:34 UTC ( [id://653892]=note: print w/replies, xml ) Need Help??


in reply to How to expand a string

$s = 'RAGGTS'; $s =~ s[R][{A,G}]g; $s =~ s[S][{C,G}]g; print while glob $s; AAGGTC AAGGTG GAGGTC GAGGTG

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: How to expand a string
by lima1 (Curate) on Nov 29, 2007 at 16:48 UTC
    ++ nice trick :) didn't know that...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-23 22:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found