in reply to Re: modules using things from other modules
in thread modules using things from other modules

wait a sec, can you show me how I could craft a module that would would be able to use an existing CGi.pm (or make new if not exist) to access the raw_cookie() method mentioned in teh docs?
  • Comment on Re^2: modules using things from other modules

Replies are listed 'Best First'.
Re^3: modules using things from other modules
by Your Mother (Archbishop) on Sep 01, 2008 at 19:49 UTC

    Sure. Here you go-

    package MyPackage; use CGI (); sub get_raw_cookie { return CGI::raw_cookie(); }

    You do not need to create a CGI object to use its functions. raw_cookie() is not likely to be what you want either unless you're passing it to another cookie parser. The cookie handling that comes with CGI is probably better.

      that method and module is just one example of what I need use. So what you guys saying is that even if i use a module in my module, if it is alredy loaded it done not get loaded again? thats great news
        So what you guys saying is that even if i use a module in my module, if it is alredy loaded it done not get loaded again? Correct
        perldoc -f use
        perldoc -f require