Modules in a required file

J

Jason Carlton

I'm have several scripts that share the same function, so I'm moving
that function to a separate script and using require in the parent
scripts.

This function uses the CGI::Cookie module. Do I need to "use" this
module in each of the parent scripts, or can I only call it once in
the required script?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top