DOCUMENT();
loadMacros(
"PG.pl",
"PGbasicmacros.pl",
"PGchoicemacros.pl",
"PGanswermacros.pl",
"PGauxiliaryFunctions.pl"
);
$l = (-1,-2,-3,-4,-5,-6);
$j = random(0,3,1);
$k = $l->[$j];
TEXT(EV3(<<'EOT'));
print this: $k end of print
EOT
ENDDOCUMENT();
When I ran this in PGLabs I only get as output
print this: end of print
I clearly do not understand how array works in PG/Perl; your help and assistance is most appreciative.