我正在尝试更新xml文件以进行语法突出显示,因此我想知道最简单的方法来获取所有Perl内置函数的列表。
最佳答案
这是cnicutar想法的快速实现:
use Pod::Find qw(pod_where);
my $perlfunc_path = pod_where({ -inc => 1 }, 'perlfunc');
open my $in, "<", $perlfunc_path or die "$perlfunc_path: $!";
while(<$in>) {
last if /=head2 Alphabetical/;
}
while(<$in>) {
print "$1\n" if /=item (.{2,})/;
}
为您提供包括如下参数的列表:
-X FILEHANDLE
-X EXPR
-X DIRHANDLE
-X
abs VALUE
abs
...
关于perl - 获得所有Perl内置函数的列表的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6722976/