Nik has asked for the wisdom of the Perl Monks concerning the following question:
ans also can i put color on that line? and if so, how? print ol( li( $st->{NAME} ) ); thanks!if ($host eq "dell") { if ($db = DBI->connect("DBI:mysql:nikos_db", "root", "XXXX")) {} else { print font( {-size=>5, -color=>'Lime'}, $DBI::errstr ); exit(); } } else { if ($db = DBI->connect("DBI:mysql:nikos_db:50free.net", "nikos_db", + "XXXX")) {} else { print font( {-size=>5, -color=>'Lime'}, $DBI::errstr ); exit(); } }
Edited by theorbtwo: Removed passwords, added code tags at bottom.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print and Die!
by Abigail-II (Bishop) on Feb 06, 2004 at 21:10 UTC | |
by flyingmoose (Priest) on Feb 06, 2004 at 21:24 UTC | |
| |
|
Re: Print and Die!
by Zaxo (Archbishop) on Feb 06, 2004 at 21:28 UTC | |
|
Re: Print and Die!
by hardburn (Abbot) on Feb 06, 2004 at 21:33 UTC | |
| |
|
meta sugguestion
by Fletch (Bishop) on Feb 06, 2004 at 21:15 UTC | |
by Vautrin (Hermit) on Feb 06, 2004 at 21:36 UTC | |
|
Re: Print and Die!
by NetWallah (Canon) on Feb 07, 2004 at 06:43 UTC | |
|