Help for this page

Select Code to Download


  1. or download this
    use Hash::Ordered;
    use MCE::Shared::Ordhash;
    ...
    my $h3 = Hash::Ordered->new( @pairs );
    my $h4 = MCE::Shared::Ordhash->new( @pairs );
    
  2. or download this
    my $oh = MCE::Shared::Ordhash->new();
    
    ...
    $oh->{hello} = "there";  # on-demand hash-like dereferencing
    $oh->assign( @pairs );
    
  3. or download this
    use Hash::Ordered;
    
    ...
    my $h2  = Hash::Ordered->new(qw( title1 foo title2 bar title3 baz ));
    my @labels2 = $h2->keys;