Grant wrote:
I'm trying to use the Google::Adwords perl modules but I'm getting:Bareword "Google::Adwords::Campaign" not allowed while "strict subs" in use Here is the beginning of my script: use Google::Adwords::Campaign; use Google::Adwords::CampaignService; sub { my $campaign = Google::Adwords::Campaign; I get: # ls /usr/lib/perl5/vendor_perl/5.8.8/Google/Adwords/Campaign.pm /usr/lib/perl5/vendor_perl/5.8.8/Google/Adwords/Campaign.pm Does anyone know why this is happening?
You need to change: my $campaign = Google::Adwords::Campaign; To: my $campaign = Google::Adwords::Campaign->new(); John -- Those people who think they know everything are a great annoyance to those of us who do. -- Isaac Asimov -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
