in reply to "use strict;" woes
our $serverDB = "blahblahblah"; . . . our $db = "DBI:mysql:$serverDb:$serverName";
You didn't capitalize the last 'b' in $serverDb.
BTW--Generally, globals are capitalized to make it clear that they are, in fact, globals. Words are seperated with '_' chars, so your $serverName would become $SERVER_NAME. This idiom would have saved you above.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: "use strict;" woes
by Anonymous Monk on Oct 14, 2003 at 18:06 UTC | |
by hardburn (Abbot) on Oct 14, 2003 at 18:15 UTC | |
by Anonymous Monk on Oct 14, 2003 at 18:27 UTC | |
by jeffa (Bishop) on Oct 14, 2003 at 19:08 UTC | |
by Anonymous Monk on Oct 14, 2003 at 19:14 UTC | |
| |
by perrin (Chancellor) on Oct 14, 2003 at 19:08 UTC | |
by DrHyde (Prior) on Oct 15, 2003 at 08:53 UTC | |
by perrin (Chancellor) on Oct 15, 2003 at 15:50 UTC |