Re: Bareword DBI::SQL_INTEGER not allowed while strict subs

2005-12-12 Thread Scott T. Hildreth
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 [EMAIL PROTECTED]
 http://www.life.umd.edu/biology/shawlab/patrickdanley
 
 
 
 
-- 
Scott T. Hildreth [EMAIL PROTECTED]


Bareword DBI::SQL_INTEGER not allowed while strict subs

2005-12-11 Thread Patrick Danley
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 [EMAIL PROTECTED]
http://www.life.umd.edu/biology/shawlab/patrickdanley






RE: Bareword DBI::SQL_INTEGER not allowed while strict subs

2005-12-11 Thread 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:[EMAIL PROTECTED]
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  
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 [EMAIL PROTECTED]
http://www.life.umd.edu/biology/shawlab/patrickdanley






Re: Bareword DBI::SQL_INTEGER not allowed while strict subs

2005-12-11 Thread michael . peppler
One way to solve it is to do:

use DBI qw(:sql_types);

Michael




Extranet
[EMAIL PROTECTED] - 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 [EMAIL PROTECTED]
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.