Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: getting module output in a cgi file

by Joost (Canon)
on Dec 17, 2005 at 15:59 UTC ( [id://517498]=note: print w/replies, xml ) Need Help??


in reply to getting module output in a cgi file

Remove the exit statement or you won't even be able to use the module. also, I'd STRONGLY suggest using strict, lexical variables and pass the values as function arguments instead of relying on vars that are declared (or not) SOMEWHERE else.

then do something like:

use ModuleName; # ... pageNumbers($total_pages,$matches,$total_records_page, @and_whatever_o +ther_variables_you_need);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found