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. Advertisements

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:
    591
    Just D.
    Mar 10, 2006
  2. Remy Cool
    Replies:
    1
    Views:
    553
    Remy Cool
    Aug 27, 2003
  3. Tobiah
    Replies:
    2
    Views:
    419
    Tobiah
    Sep 14, 2003
  4. Ben Weintraub

    Disabling modules using Modules/Setup

    Ben Weintraub, Sep 9, 2006, in forum: Python
    Replies:
    0
    Views:
    475
    Ben Weintraub
    Sep 9, 2006
  5. Gary Palmer

    required modules in OS X

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

    reloading required modules in irb

    Heikki Kupiainen, Aug 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    184
    Erik Veenstra
    Aug 6, 2006
  7. News KF
    Replies:
    1
    Views:
    139
    Tad McClellan
    Sep 4, 2005
  8. Teo
    Replies:
    3
    Views:
    250
Loading...