Murcia has asked for the wisdom of the Perl Monks concerning the following question:
Hi Confreres,
In my cgi I have some break conditions printing a possible error in functions, e.g
. If an errors occurs, I want to know in which line of my code this happens, but to not know how to pass the line number to the error_message subroutine!?open(FILE, "$file") || &error_message("file can not be opened")
Thanks in advance
Guido
20050606 Janitored by Corion: Removed PRE tag, put HTML formatting instead
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: cgi code line message
by Zaxo (Archbishop) on Jun 06, 2005 at 07:29 UTC | |
Re: cgi code line message
by davido (Cardinal) on Jun 06, 2005 at 07:28 UTC | |
by Murcia (Monk) on Jun 06, 2005 at 07:54 UTC | |
by davido (Cardinal) on Jun 06, 2005 at 08:28 UTC | |
Re: cgi code line message
by brian_d_foy (Abbot) on Jun 06, 2005 at 08:41 UTC | |
Re: cgi code line message
by rupesh (Hermit) on Jun 06, 2005 at 10:35 UTC | |
Re: cgi code line message
by jpeg (Chaplain) on Jun 06, 2005 at 07:57 UTC |