Help for this page

Select Code to Download


  1. or download this
      my @MyArray = ( 1, 2, 3, 4 );
      my $varname = 'MyArray';
      my $x = eval '$' . $varname . '[0]';  # THIS IS BAD!!!!!
      print $x; # 1