Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Object get method as variable nameby danmcb (Monk) |
on Jan 09, 2013 at 19:31 UTC ( [id://1012550]=perlquestion: print w/replies, xml ) | Need Help?? |
danmcb has asked for the wisdom of the Perl Monks concerning the following question: I am using Net::Google::Analytics to grab stats from the goog. The names of object accessors in the Row object are generated at runtime according to the parameters requested. So if you request the ga:pageviews metric, the row will have a method called get_pageview. My code:
The difficulty I have is calling the method name. I get a "Not a HASH reference at ..." error. Can you help please, oh holy ones? ;-) Thanks!
Back to
Seekers of Perl Wisdom
|
|