Re: Bareword "Google::Adwords::Campaign" not allowed while "strict subs" in use
- From: jwkrahn@xxxxxxx (John W. Krahn)
- Date: Sun, 19 Apr 2009 13:22:56 -0700
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
.
- Follow-Ups:
- Re: Bareword "Google::Adwords::Campaign" not allowed while "strictsubs" in use
- From: Gunnar Hjalmarsson
- Re: Bareword "Google::Adwords::Campaign" not allowed while "strictsubs" in use
- References:
- Prev by Date: Bareword "Google::Adwords::Campaign" not allowed while "strict subs" in use
- Next by Date: Re: Bareword "Google::Adwords::Campaign" not allowed while "strictsubs" in use
- Previous by thread: Bareword "Google::Adwords::Campaign" not allowed while "strict subs" in use
- Next by thread: Re: Bareword "Google::Adwords::Campaign" not allowed while "strictsubs" in use
- Index(es):
Relevant Pages
|
Loading