prensrf has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Sorry for the poor title, my inability to describe my problem is probably why I haven't been able to search for a suitable answer to the issue.
Basically I have been trying to compare values held in multiple lists and generate some output based on the position in the list of the match.
After some searching around I came across an interesting snippet of code using Algorithm::NeedlemanWunsch
However, this is the problem. The Snippet uses scalars as the input. . .
and I have the values I need to push into the algorithm in two @listsmy $arr1 = [qw(A T C G T C G A G C G)]; my $arr2 = [qw(A C G T C C T G T C G)];
Can anyone suggest a way to mangle my @lists into a suitable scaler in the above format?
Thanks in advance
Rich
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: array to string conversion.
by choroba (Cardinal) on Dec 09, 2014 at 15:28 UTC | |
Re: array to string conversion. (perlintro, perlreftut, perldata)
by Anonymous Monk on Dec 09, 2014 at 15:30 UTC | |
Re: array to string conversion.
by Ratazong (Monsignor) on Dec 09, 2014 at 15:30 UTC | |
Re: array to string conversion.
by prensrf (Initiate) on Dec 09, 2014 at 15:42 UTC | |
Re: array to string conversion.
by sundialsvc4 (Abbot) on Dec 09, 2014 at 16:53 UTC | |
by Anonymous Monk on Dec 09, 2014 at 17:34 UTC |
Back to
Seekers of Perl Wisdom