"be consistent" | |
PerlMonks |
Re: Module questionsby satchboost (Scribe) |
on Apr 04, 2001 at 20:12 UTC ( [id://69715]=note: print w/replies, xml ) | Need Help?? |
The previous answer to your fourth question was inaccurate. The reason you have to write use CGI; as well as use CGI::Cookie; is that they are separate packages. PERL doesn't do any sort of inheritance naturally for you, like C++ or JAVA. Within the executable, there is no connection between CGI and CGI::Cookie.
That said, you can get around all of this by clever module design, which is what I suspect the author(s) of CGI did.
In Section
Seekers of Perl Wisdom
|
|