>>> 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;
>
> <snip>
>
>> You need to change:
>>
>> my $campaign = Google::Adwords::Campaign;
>>
>> To:
>>
>> my $campaign = Google::Adwords::Campaign->new();
>
> I see that the the SYNOPSIS sections of both the Google::Adwords::Campaign
> POD and the Google::Adwords::CampaignService POD say something else. Such
> mistakes makes me doubt the quality of those modules.

Got it, thanks guys.

- Grant

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to