执行另一个文件的内容

do './config.pl';

这将读入 config.pl 文件的内容并执行它。 (另见: perldoc -f do 。)

注意: 除非打高尔夫球或其他没有错误检查,否则请避免使用 do。要包含库模块,请使用 require 或 use。