in reply to Don't print on the last loop
my $add_comma=0; while ( my ( $cat, $schem, $tn, $cn, $dt, $tyn, $cs, $bl, $dd, $npr +, $nul) = $sth->fetchrow_array()) { if ($add_comma++) { print ",\n"; } print "\t$cn "; if (($tyn eq 'DATETIME') || ($tyn eq 'DOUBLE')) { print "$tyn"; } else { print "$tyn($cs)"; } print " not null" if ($nul == 0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Don't print on the last loop
by calin (Deacon) on Jun 13, 2005 at 20:20 UTC | |
|
Re^2: Don't print on the last loop
by omega_monk (Scribe) on Jun 13, 2005 at 14:30 UTC |