in reply to Re^8: First foray into Perl
in thread First foray into Perl

Wow - Thanks so much for your efforts on this. Really appreciated! I'm still working on using it to extract sequences from my 15,000 record file so can't state success quite yet but I'll let you know.

Cheers!

Replies are listed 'Best First'.
Re^10: First foray into Perl
by AnomalousMonk (Archbishop) on Mar 27, 2014 at 17:36 UTC

    A minor update: This version of the loop may be a bit nicer (tested):

    # works -- a while loop might be more efficient/elegant MAX_BASES: while (@base_values) { # @base_values is consumed $max_bases .= $_->[1] for # append base of each max reduce { $a->[0] > $b->[0] ? $a : $b } # max in group map [ shift(@base_values), $_ ], @base_ord # groups of n ; }
Re^10: First foray into Perl
by Cristoforo (Curate) on Mar 27, 2014 at 22:45 UTC
    Perl may seem foreign if you are new to it - Learning Perl as an introduction, and Perl Cookbook are 2 good sources on Perl.

    Don't get discouraged as I am now trying to learn a new GUI, Xojo which uses a form of the Visual Basic language and to learn all the new ways of string matching, working with arrays and converting numbers to printable strings is challenging. I will probably need to get a book that explains it all. Just doing the beginners' tutorial is difficult.