in reply to Re^3: RFC: Module::Prefer
in thread RFC: Module::Prefer

Repeated use() calls call the ->import function. The code is compiled only once but ->import is called every time unless you passed an empty parameter list like use Something ();. Best provides a which() function which can tell you which module loaded.

use Best qw( CGI CGI::Simple ); my $q = Best->which( 'CGI' )->new;

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^5: RFC: Module::Prefer
by radiantmatrix (Parson) on Sep 26, 2006 at 18:04 UTC