I get all of the arrays printed out succesively. Each array is composed of several thousand data strings followed by a \n. From an Excel perspective, it would be the equivalent of 4 columns of several thousand rows (per array). What I am aiming to do is get these arrays printed out in succesive columns, so (again in Excel terms) it would be a total of 4 columns x 5 arrays =20 columns total. Anyway, I know that the best way to do this is to say print "@a,@b,@c";so that they are all printed simultaniously. Hence, I have fished the keys of the array out (the name of the arrays themselves) using my $scalar= join( ', ',keys %data); Therin lies my problem however. I have the names of the arrays in a scalar, but like calling a program in a different subdirectory, need to be able to pull out the names and figure out how to print the arrays themselves, rather than the names of the arrays. I hope I have elucidated my goals well. Thanks so much!!!for $zz(keys %data) { print OUTPUT "@{ $data{$zz} }" }
In reply to Custom printing of an HoA by bioinformatics
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |