in reply to Hexamer combination from 3mers.

#!/usr/bin/perl use strict; use warnings; use feature 'say'; my @trimers = <>; chomp @trimers; say for glob +('{' . join(',', @trimers) . '}' ) x 2;
Update: Using glob is safe only if the data do not contain any special characters like ? * [] {} , or whitespace.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Hexamer combination from 3mers.
by daxim (Curate) on Oct 10, 2012 at 15:57 UTC
Re^2: Hexamer combination from 3mers.
by oxydeepu (Novice) on Oct 10, 2012 at 15:54 UTC

    Hi,
    Thanks alot. That works.
    Best,
    Deepak