Help for this page

Select Code to Download


  1. or download this
    # When retrieving data from DBI
    my $Ref = {map(defined $_ ? $_ : '', %{$sth->fetchrow_hashref})};
    
  2. or download this
    my $Ref = [map(defined $_ ? $_ : '', @{$sth->fetchrow_arrayref)];
    
  3. or download this
    print "<td> @{[ defined $Var ? $Var : '' ]} </td>";