in reply to Re^2: MySQL results inserted into Perl variable
in thread MySQL results inserted into Perl variable
The only change that I would make to the foregoing is that I would choose to specify the column-name, not as a bareword, but as a literal string, viz:
So you have more to type?
my $field1 = $data->[0]{'field1'};
That is not stupid at all , you really should have $field99 instead of that pesky $data array
|
|---|