Do you know where your variables are? | |
PerlMonks |
Re: Re: Re: Re: Re: RFC CGI.pm refactoringby tachyon (Chancellor) |
on Feb 15, 2002 at 15:48 UTC ( [id://145702]=note: print w/replies, xml ) | Need Help?? |
Actually you completely fail to understand how CGI.pm works. When you use CGI; you import 0 methods. The methods are available via the OO interface and compiled on demand. When you use CGI qw/:cgi/; you import and compile the basic cgi methods (which you would otherwise not do with a straight use CGI;). As we are making OO calls this is a complete waste of time. Running your example you can see that the time remains essentially the same as expected (loading the extra methods once (with the use CGI qw/:cgi/;) adds about a second to the load time but this is a once off price and we are then looping.
cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Meditations
|
|