Help for this page

Select Code to Download


  1. or download this
    $tests{2} = \%blah2;
    
  2. or download this
    $tests{2} = { 
                  condition => "AND",
                  terms => [ "foo", "bar" ],
                };
    
  3. or download this
    my @array = ( 1, 2, 3 );
    my %hash = ( A => 1, B => 2, C => 3, );
    
  4. or download this
    my $array_ref = [ 1, 2, 3 ];
    my @array = @{$array_ref}; # becomes an explicit array
    
  5. or download this
    my $hash_ref = { A => 1, B => 2, C => 3, };
    my %hash = %{$hash_ref}; # becomes an explicit hash