Home  |  Linux  | Mysql  | PHP  | XML
From:Steve Bertrand Date:Tue Jun 30 04:59:52 2009
Subject:Re: Rendering data structures using CGI::Application
Gurunandan R. Bhat wrote:
> Sure. I think you would like to have the error messages next to the sub
> that threw them, but here is what you want: (NOT TESTED!!)

..woot!!!

Thank you ever so much.

Although I inserted the data statically into my _render_error() method,
the result is positive!

Other than site-specific changes, your code was completely copy and
paste. Kudos.

Now that I have a baseline to work with, it will be trivial for me to
follow this example to insert my data dynamically, and format it as I
please.

Cheers,

Steve

ps. I've stuck with my 'passing the $error around' for now. I've been
finding that going over older code (a couple of years old) and being
able to rewrite it at 20% its original size is a good thing. Even if my
error checking is the hard way, it's still 'a' way, and one I'll
eventually learn a lesson from ;)

Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: Using Heap::Elem
AW: exit status
Re: How to use a CGI/PERL hash variable in java script.
Re: Perl script to monitor memory usage on unix box
RE: Substitution question



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants