Ticket #44439: p5-pdl-44439.patch

File p5-pdl-44439.patch, 689 bytes (added by mvgrimes, 10 years ago)
  • perl/p5-pdl/files/fix-pdldocdb.pl

     
    3838        while ( read IN, $plen, 2 ) {
    3939            my ($len) = unpack "S", $plen;
    4040            read IN, $txt, $len;
    41             my ( $sym, %hash ) = split chr(0), $txt;
    42             $this->{SYMS}->{$sym} = {%hash};
     41            my ($sym, @a) = split chr(0), $txt;
     42            push @a, '' if @a % 2; # Ensure an even number of elements
     43            $this->{SYMS}->{$sym} = {@a};
    4344        }
    4445        close IN;
    4546        push @{ $this->{Scanned} }, $fi;