use constant FOOBAR => 5; $array[ FOOBAR ] = 'something'; # OR... my $foobar = \ $array[ 5 ]; $$foobar = 'something';
In reply to Re: use simple scalar names to point to specific array elements
by diotalevi
in thread use simple scalar names to point to specific array elements
by Sandy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |