Help for this page

Select Code to Download


  1. or download this
    my %whatever = (
        'a' => [1,2,3,4],
        'b' => [5,6,7,8],
    );
    
  2. or download this
        my $extract = $whatever{'a'}[0]; #should = 1
    
  3. or download this
    my $extract = $::whatever{'a'}[0]; #should = 1
    
  4. or download this
    my $extract = $main::whatever{'a'}[0]; #should = 1