Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    }
    
    dd \%columns;
    
  2. or download this
    {
      a => [1, 3, undef, undef, undef],
      b => [undef, 4, undef, 8, undef],
      c => [undef, undef, undef, undef, 9],
    }
    
  3. or download this
    push @{$columns{$_}}, $row->{$_} // '' for @uniq_keys;
    
  4. or download this
    push @{$columns{$_}}, defined($row->{$_}) ? $row->{$_} : '' for @uniq_
    +keys;
    
  5. or download this
    {
      a => [1, 3, "", "", ""],
      b => ["", 4, "", 8, ""],
      c => ["", "", "", "", 9],
    }
    
  6. or download this
    my $sql= new SQL::Abstract( array_datatypes => 1 );
    
  7. or download this
    my $sql = SQL::Abstract::->new(array_datatypes => 1);