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.
In reply to Re^3: modules using things from other modules
by Your Mother
in thread modules using things from other modules
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |