The short answer is that something like:
use Tk;is equivalent to:
BEGIN { require "Tk.pm"; import Tk; }Hence the essential difference is that a mere require Tk; does not achieve the import of function/method names. The significance of this is that it allows one to call ->Button rather than having to call the fully qualified ->Tk::Button e.g.. For further details on this subject see man perlmod(1) or see Tom Christiansen's document at:
ftp://ftp.perl.com/perl/info/everything_to_know/use_vs_require
Previous | Return to table of contents | Next