Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 14899
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: thaljef [...] cpan.org
Requestors: kclark [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08_02
Fixed in: 0.10



Subject: Builtin function called with parens for DBI::do
I'm getting the complaint of "Builtin function called with parens" for DBI's "do" method, e.g., at line 6 of this: #!/usr/local/bin/perl use strict; use DBI; my $dbh = DBI->connect('dbi:mysql:test', '', ''); $dbh->do('select 1+1'); I can't quite figure out a patch for this, but obviously it's confusing Perl's "do" with DBI's. ky
[KCLARK - Mon Oct 3 16:35:16 2005]: Show quoted text
> I'm getting the complaint of "Builtin function called with parens" for > DBI's "do" method, e.g., at line 6 of this: > > #!/usr/local/bin/perl > > use strict; > use DBI; > > my $dbh = DBI->connect('dbi:mysql:test', '', ''); > $dbh->do('select 1+1'); > > I can't quite figure out a patch for this, but obviously it's > confusing Perl's "do" with DBI's. > > ky
Thanks for reporting this. This has been fixed in Perl::Critic 0.09 (release forthcoming) -Jeff
Fixed in version 0.10. Things that look like method calls are exempt from the ProhibitParensWithBuiltins policy.