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

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.

Replies are listed 'Best First'.
Re^4: modules using things from other modules
by Anonymous Monk on Sep 01, 2008 at 20:42 UTC
    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