Help for this page

Select Code to Download


  1. or download this
    %copy= %orig;
    
  2. or download this
    $ ./perl -Ilib -MHash::Util=bucket_array -MData::Dumper -le'my (%hash,
    +%copy); keys(%copy)=16; %hash=(1..14); %copy=%hash; print Data::Dumpe
    +r->new([bucket_array($_)])->Terse(1)->Indent(0)->Dump for \%hash, \%c
    +opy;' 
    [['13','5'],1,['7'],['11'],2,['3','1'],['9']]
    [3,['11'],3,['9'],['5','13'],1,['7'],3,['1','3'],1]
    
  3. or download this
    $ ./perl -Ilib -MHash::Util=bucket_array -MData::Dumper -le'my (%hash,
    +%copy); %hash=(1..14); %copy=%hash; print Data::Dumper->new([bucket_a
    +rray($_)])->Terse(1)->Indent(0)->Dump for \%hash, \%copy;' 
    [['11'],['7'],2,['13','5'],['9','3'],['1'],1]
    [['11'],['7'],2,['5','13'],['3','9'],['1'],1]