Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^7: How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?

by poj (Parson)
on Apr 25, 2013 at 07:55 UTC ( #1030620=note: print w/ replies, xml ) Need Help??


in reply to Re^6: How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?
in thread How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?

That looks like you have some blank lines in the data files probably at the end. If you print $DNA you should see commas with no values between them. Either edit the files or add a filter like this ;

$DNA = join(',',grep(/[ACGT]\d[ACGT]\d/,@DNA)); print "$DNA\n";
poj


Comment on Re^7: How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2016-02-12 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (392 votes), past polls