Help for this page

Select Code to Download


  1. or download this
    No such pseudo-hash field "HASH(0x10a57c)" at ./listref line 22.
    
  2. or download this
    my @bar = sort {$a->{blah} cmp $b->{blah} } @$foo;
  3. or download this
    my $foo = [ {blah=>5,d=>1},
                {blah=>4,d=>2},
    ...
    
    print join(',',map {$_->{blah}} @bar), $/;
    
  4. or download this
    my $foo = [ [5,1],
                [4,2],
    ...
    
    my @bar = sort {$foo->{$a} cmp $foo->{$a} } @$foo;
    # should be my @bar = sort {$a[0] cmp $b[0]} @$foo;
    
  5. or download this
    Can't coerce array into hash at ./listref line 33.