Help for this page

Select Code to Download


  1. or download this
        
        @array = (
            ['a','b'],
    ...
            );
    
            print $array[1][0]; #result c;
    
  2. or download this
        @array = (
            {
    ...
        );
    
        print $array[1]{c}; #result d;
    
  3. or download this
        %hash = (
            "1" => ['a','b'],
    ...
    );
    
      print $hash{1}[0]; result a
    
  4. or download this
      %hash = (
        "1" => {
    ...
          );
    
      print $hash{2}{d}; #result e