Nik has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to produce the same effect with same formatting by just using a die statement?!print h1( {class=>'cyan'}, "Error occured $row->{username}! Script hav +e to die" ) if( $select->rows ); exit 0 if( $select->rows );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Merge 2 lines in 1 die statement
by rhesa (Vicar) on Apr 28, 2007 at 00:56 UTC | |
|
Re: Merge 2 lines in 1 die statement
by ikegami (Patriarch) on Apr 28, 2007 at 02:24 UTC | |
by Nik (Initiate) on Apr 28, 2007 at 07:52 UTC | |
by shmem (Chancellor) on Apr 28, 2007 at 09:30 UTC | |
by Nik (Initiate) on Apr 28, 2007 at 09:39 UTC | |
by shmem (Chancellor) on Apr 28, 2007 at 11:00 UTC | |
| |
by Nik (Initiate) on Apr 28, 2007 at 10:10 UTC | |
by rhesa (Vicar) on Apr 28, 2007 at 13:35 UTC | |
|
Re: Merge 2 lines in 1 die statement
by sgifford (Prior) on Apr 28, 2007 at 05:51 UTC | |
|
Re: Die statement with text & formatting of the user
by jonadab (Parson) on Apr 28, 2007 at 15:08 UTC |