in reply to use simple scalar names to point to specific array elements
use constant FOOBAR => 5; $array[ FOOBAR ] = 'something'; # OR... my $foobar = \ $array[ 5 ]; $$foobar = 'something'; [download]