Using the Perl qw() function
use File::Temp qw(tempfile tempdir);
This code fragment has the effect of importing the tempfile and tempdir functions from the File::Temp module.
It does this by providing the list ‘tempfile’, ‘tempdir’ to the use function.
http://perlmeme.org/howtos/perlfunc/qw_function.html
本文介绍如何使用Perl的qw()函数来从File::Temp模块导入特定的函数,如tempfile和tempdir。通过提供函数名列表给use语句,可以有效地避免在代码中重复输入模块名。
8439

被折叠的 条评论
为什么被折叠?



