Modules in a required file

Discussion in 'Perl Misc' started by Jason Carlton, Nov 29, 2009.

  1. 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?
     
    Jason Carlton, Nov 29, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Just D.
    Replies:
    0
    Views:
    455
    Just D.
    Mar 10, 2006
  2. Gary Palmer

    required modules in OS X

    Gary Palmer, Oct 10, 2003, in forum: Ruby
    Replies:
    1
    Views:
    99
    Ollivier Robert
    Oct 10, 2003
  3. Heikki Kupiainen

    reloading required modules in irb

    Heikki Kupiainen, Aug 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    122
    Erik Veenstra
    Aug 6, 2006
  4. News KF
    Replies:
    1
    Views:
    87
    Tad McClellan
    Sep 4, 2005
  5. Teo
    Replies:
    3
    Views:
    179
Loading...

Share This Page