Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
am 12.12.2005 00:45:14 von patrick.danley
--Apple-Mail-7--728791263
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
I am new to DBI, Perl, and SQL and I am currently trying to piece
together a group of bioinformatic programs. In running the database
element of the package, I recieve a number of :
Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use
errors (a full listing of the error is pasted below).
Does anyone have experience with this error and/or suggestions on how
i might resolve it?
I am truly a novice, 3 days in, so simple explanations would be
especially appreciated.
I'm running :
Perl 5.8.6
dbi-pm 5.8.6
PostgreSQL -perl-586
Mac OS 10.4.2
Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_SMALLINT" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_DECIMAL" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_FLOAT" not allowed while "strict subs" in use at /
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_REAL" not allowed while "strict subs" in use at /
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_DOUBLE" not allowed while "strict subs" in use at /
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_NUMERIC" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Compilation failed in require at /Users/TheBucket/lib/Perl/PartiGene/
PG_db.pm line 6.
BEGIN failed--compilation aborted at /Users/TheBucket/lib/Perl/
PartiGene/PG_db.pm line 6.
Compilation failed in require at /Users/TheBucket/genome/bin/
PartiGene_db.pl line 4.
BEGIN failed--compilation aborted at /Users/TheBucket/genome/bin/
PartiGene_db.pl line 4.
Patrick Danley, Ph.D.
Postdoctoral Researcher
Department of Biology
University of Maryland
phone 301.405.8303
fax 301.314.9358
email pdanley@umd.edu
http://www.life.umd.edu/biology/shawlab/patrickdanley
--Apple-Mail-7--728791263--
Re: Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
am 12.12.2005 01:48:02 von shild
If you are using DBI::SQL_INTEGER, ':sql_types' needs to be imported,
i.e.
use DBI qw(:sql_types);
On Sun, 2005-12-11 at 18:45 -0500, Patrick Danley wrote:
> I am new to DBI, Perl, and SQL and I am currently trying to piece
> together a group of bioinformatic programs. In running the database
> element of the package, I recieve a number of :
>
> Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use
> errors (a full listing of the error is pasted below).
>
> Does anyone have experience with this error and/or suggestions on how
> i might resolve it?
>
> I am truly a novice, 3 days in, so simple explanations would be
> especially appreciated.
>
>
>
>
> I'm running :
>
> Perl 5.8.6
> dbi-pm 5.8.6
> PostgreSQL -perl-586
> Mac OS 10.4.2
>
>
>
>
>
> Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use
> at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
> Bareword "DBI::SQL_SMALLINT" not allowed while "strict subs" in use
> at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
> Bareword "DBI::SQL_DECIMAL" not allowed while "strict subs" in use
> at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
> Bareword "DBI::SQL_FLOAT" not allowed while "strict subs" in use at /
> sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
> Bareword "DBI::SQL_REAL" not allowed while "strict subs" in use at /
> sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
> Bareword "DBI::SQL_DOUBLE" not allowed while "strict subs" in use at /
> sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
> Bareword "DBI::SQL_NUMERIC" not allowed while "strict subs" in use
> at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
> Compilation failed in require at /Users/TheBucket/lib/Perl/PartiGene/
> PG_db.pm line 6.
> BEGIN failed--compilation aborted at /Users/TheBucket/lib/Perl/
> PartiGene/PG_db.pm line 6.
> Compilation failed in require at /Users/TheBucket/genome/bin/
> PartiGene_db.pl line 4.
> BEGIN failed--compilation aborted at /Users/TheBucket/genome/bin/
> PartiGene_db.pl line 4.
>
>
>
> Patrick Danley, Ph.D.
>
> Postdoctoral Researcher
> Department of Biology
> University of Maryland
>
> phone 301.405.8303
> fax 301.314.9358
> email pdanley@umd.edu
> http://www.life.umd.edu/biology/shawlab/patrickdanley
>
>
>
>
--
Scott T. Hildreth
RE: Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
am 12.12.2005 05:01:56 von ted.behling
It's hard to say exactly why that's happening without seeing a snippet =
of your code, but try using:
DBI::SQL_INTEGER()
In other words, add the () at the end.
-----Original Message-----
From: Patrick Danley [mailto:patrick.danley@gmail.com]
Sent: Sunday, December 11, 2005 6:45 PM
To: dbi-users@perl.org
Subject: Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
I am new to DBI, Perl, and SQL and I am currently trying to piece =20
together a group of bioinformatic programs. In running the database =20
element of the package, I recieve a number of :
Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use =20
errors (a full listing of the error is pasted below).
Does anyone have experience with this error and/or suggestions on how =20
i might resolve it?
I am truly a novice, 3 days in, so simple explanations would be =20
especially appreciated.
I'm running :
Perl 5.8.6
dbi-pm 5.8.6
PostgreSQL -perl-586
Mac OS 10.4.2
Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use =20
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_SMALLINT" not allowed while "strict subs" in use =20
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_DECIMAL" not allowed while "strict subs" in use =20
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_FLOAT" not allowed while "strict subs" in use at /=20
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_REAL" not allowed while "strict subs" in use at /=20
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_DOUBLE" not allowed while "strict subs" in use at /=20
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_NUMERIC" not allowed while "strict subs" in use =20
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Compilation failed in require at /Users/TheBucket/lib/Perl/PartiGene/=20
PG_db.pm line 6.
BEGIN failed--compilation aborted at /Users/TheBucket/lib/Perl/=20
PartiGene/PG_db.pm line 6.
Compilation failed in require at /Users/TheBucket/genome/bin/=20
PartiGene_db.pl line 4.
BEGIN failed--compilation aborted at /Users/TheBucket/genome/bin/=20
PartiGene_db.pl line 4.
Patrick Danley, Ph.D.
Postdoctoral Researcher
Department of Biology
University of Maryland
phone 301.405.8303
fax 301.314.9358
email pdanley@umd.edu
http://www.life.umd.edu/biology/shawlab/patrickdanley
Re: Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
am 12.12.2005 07:46:23 von michael.peppler
One way to solve it is to do:
use DBI qw(:sql_types);
Michael
Extranet
patrick.danley@gmail.com - 12/12/2005 00:45
To: dbi-users
cc:
Subject: Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
I am new to DBI, Perl, and SQL and I am currently trying to piece
together a group of bioinformatic programs. In running the database
element of the package, I recieve a number of :
Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use
errors (a full listing of the error is pasted below).
Does anyone have experience with this error and/or suggestions on how
i might resolve it?
I am truly a novice, 3 days in, so simple explanations would be
especially appreciated.
I'm running :
Perl 5.8.6
dbi-pm 5.8.6
PostgreSQL -perl-586
Mac OS 10.4.2
Bareword "DBI::SQL_INTEGER" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_SMALLINT" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_DECIMAL" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_FLOAT" not allowed while "strict subs" in use at /
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_REAL" not allowed while "strict subs" in use at /
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_DOUBLE" not allowed while "strict subs" in use at /
sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Bareword "DBI::SQL_NUMERIC" not allowed while "strict subs" in use
at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 1168.
Compilation failed in require at /Users/TheBucket/lib/Perl/PartiGene/
PG_db.pm line 6.
BEGIN failed--compilation aborted at /Users/TheBucket/lib/Perl/
PartiGene/PG_db.pm line 6.
Compilation failed in require at /Users/TheBucket/genome/bin/
PartiGene_db.pl line 4.
BEGIN failed--compilation aborted at /Users/TheBucket/genome/bin/
PartiGene_db.pl line 4.
Patrick Danley, Ph.D.
Postdoctoral Researcher
Department of Biology
University of Maryland
phone 301.405.8303
fax 301.314.9358
email pdanley@umd.edu
http://www.life.umd.edu/biology/shawlab/patrickdanley
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.