in reply to How to flatten an x-dimensional array?
use strict; use Data::Dumper; my $ref = [ ['',''], ['',''], ['funct1','',''], ['',''], ['',['',['funct2a','funct2b',''],''],''], 'funct3', 'funct4', 'funct5', 'funct6', 'funct7', ]; my @flat = Dumper($ref) =~ /'(\w+)/g; print join("\n",@flat),"\n";
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|