Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: CGI::Application and subroutines

by Kanji (Parson)
on Dec 11, 2005 at 07:52 UTC ( #515800=note: print w/ replies, xml ) Need Help??


in reply to Re^2: CGI::Application and subroutines
in thread CGI::Application and subroutines

Unless you start messing around with print (which I wouldn't recommend until you understand CGI::App more), CGI::App will only display what you explictly return from a runmode.

So to show the results of another sub that your runmode calls, you need to get it's results into your runmode's return:-

# Perhaps like this... return errorhandler(\@errors) . "here2: " . Dumper(@errors); # ...or this... my $errors = errorhandler(\@errors); return $errors . "here2: " . Dumper(@errors);

    --k.


Update: s/would/wouldn't/;


Comment on Re^3: CGI::Application and subroutines
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://515800]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-07-05 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls