in reply to extracting all possible n-mers from an array
The funny side is that I don't quite understand this code ;)#!/usr/bin/perl use strict; use warnings; use Algorithm::Loops qw( NestedLoops ); my @list = NestedLoops( [ ( [ 'A' .. 'F' ] ) x 4 ], sub { return join '', @_ }, ); print "$_\n" foreach @list;
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|