Laurielounge has asked for the wisdom of the Perl Monks concerning the following question:
And I want to do this sort of thing on a google GA query$api_name[0] = 'get_country()'; $var_name[0] = 'Country';
But I can't hard code the variable names or the api name as every query is different, so I want to:for my $row ( @{ $res->rows } ) { $Country = $row->get_country(); $sql = "insert into table set country = '$Country'... etc
Any thoughts on how I'd get that last line to work?$[$var_name[0]] = $row->$[$api_name[0]];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Supplementary Google GA question
by huck (Prior) on Sep 12, 2017 at 02:24 UTC | |
by Laurielounge (Acolyte) on Sep 12, 2017 at 03:15 UTC |