in reply to print perl arrays using variables in array name

Hi gsc, welcome to the Monastery!

Please, fix your markup: use code tags for code and data samples.

What you want is possible, but not recommended. It's far better to use an array of arrays or hash of arrays:

my @arrays = ([qw[ 1 2 3 4 ]], [qw[ 5 6 7 8 ]], ); for my $i (0, 1) { print "ARRAY $i\nValue1 $arrays[$i][1]\n"; }

Note that I used 1 as the index to get the desired output, as arrays are indexed from 0.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,