Help for this page

Select Code to Download


  1. or download this
    %datastructure=(
      'foo' => [ 
    ...
                 [ 'bar11', 'bar12' ]
               ]
    );
    
  2. or download this
    $VAR1 = 'foo';
    $VAR2 = [
    ...
                'bar12'
              ]
            ];
    
  3. or download this
    my @entry = shift(@{@datastructure{'foo'}});
    
  4. or download this
    $VAR1 = [
              'foo01',
              'foo02'
            ];
    
  5. or download this
    @my_list = ('foo01', 'foo02');
    
  6. or download this
    $VAR1 = 'foo01';
    $VAR2 = 'foo02';
    
  7. or download this
    Dumper(@entry);
    
  8. or download this
    $VAR1 = [
              'foo01',
              'foo02'
            ];
    
  9. or download this
    Dumper(@entry->[0]);
    
  10. or download this
    $VAR1 = [
              'foo01',
              'foo02'
            ];
    
  11. or download this
    Dumper(@entry->[0]->[0]);
    
  12. or download this
    $VAR1 = 'foo01';