beartham has asked for the wisdom of the Perl Monks concerning the following question:
In the statement:
eval $TabStringfollowing a no strict; I'm getting this error in $@:
Can't modify constant item in scalar assignment at (eval 34)/home/bear/MC/MOB/DB/Utilities.pm:57 line 1, at EOFwhere $TabString is:
DBI::db=HASH(0x40b8a38)->do("CREATE TABLE STAIP08FK (PROBKEY varchar(20),MOBPAITS varchar(15),SOLVER varchar(10),UNKNOWNS char(11),CONSTRAINTS char(11),OBJECTIVE char(11),MODEL char(16),CRITERIA char(11),ITERATIONS integer,primary key (PROBKEY) );");The connected DBI handle seems to be the problem. I'm generating these joined DB tables dynamically. I can't get around that. Is there a way I can get past this eval error?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Eval error on connectd DBI handle
by MidLifeXis (Monsignor) on Feb 23, 2016 at 21:43 UTC | |
by kennethk (Abbot) on Feb 23, 2016 at 22:02 UTC | |
by afoken (Chancellor) on Feb 24, 2016 at 22:33 UTC | |
by beartham (Novice) on Feb 23, 2016 at 21:50 UTC | |
|
Re: Eval error on connectd DBI handle
by Discipulus (Canon) on Feb 23, 2016 at 22:03 UTC | |
|
Re: Eval error on connectd DBI handle
by kennethk (Abbot) on Feb 23, 2016 at 21:43 UTC |