in reply to Can One Predeclare a Package's Methods?
which yieldsuse CGI qw(p); print p 'hello';
That still doesn't give us predeclared methods, for the reasons mentioned by others, but it'll work for the specific case. (use CGI qw(:standard) keeps you from having to import everything individually.)<P>hello</P>
Personally, I'd still use the parens for clarity, since my above call looks too much like I'm trying to print "hello" to a filehandle named "p".
stephen
|
---|