On Jan 5, nafiseh saberi said: >what is the difference between >"use" , "import" , "require".
The code: use Module qw( this $that ); is the same as: # BEGIN { } happens at compile-time BEGIN { require Module; Module->import(qw( this $that )); } Read 'perldoc -q require' for more about how 'use' and 'require' differ. As for what 'import' is, it's not a builtin function or operator. It's a method Perl expects your package to have, and it defines how to import symbols (such as functions and variables) from the package being used to the package doing the importing. You should probably read 'perldoc Exporter' to see how the general importing mechanism works. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]