Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Array looping

by johngg (Canon)
on Apr 12, 2017 at 16:53 UTC ( [id://1187785]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Array looping
in thread Array looping

Well, since the OP's post started with arrays rather than strings your golf is cheating slightly ;-)

However, if the problem comes from the real world I think the odds are better than even that the OP started with strings and split them into arrays in order to do the comparison. In that scenario your golf is fine, though anything other than "snippet" dna strings are unlikely to fit on the command line!

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^4: Array looping
by vrk (Chaplain) on Apr 13, 2017 at 08:11 UTC

    Oh, it will work with file input too since it's reading from stdin. Just make sure the two sequences are separated by a space.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-26 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found