in reply to Re^5: Append JSON (from hashref)
in thread Append JSON (from hashref)
Is there a structure I can use which means I don't have to have the $int part?while (my $row = $sth->fetchrow_hashref) { print "doc_no: $row->{RECNO} DESCRIPTION: $row->{DESCRIPTION}\n"; $hash{$int} = '"RECNO": "' . $row->{RECNO} . '","DESCRIPTION": "' . +$row->{DESCRIPTION} .'"'; $int ++; } # figure out how to add inputPhrase later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Append JSON (from hashref)
by Corion (Patriarch) on Apr 07, 2017 at 06:12 UTC | |
|
Re^7: Append JSON (from hashref)
by huck (Prior) on Apr 06, 2017 at 15:51 UTC | |
by Anonymous Monk on Apr 07, 2017 at 13:12 UTC | |
|
Re^7: Append JSON (from hashref)
by AnomalousMonk (Archbishop) on Apr 06, 2017 at 19:41 UTC |