perl path/to/script.pl
在基于UNIX的系统中,如果使用前置,则还可以直接运行脚本
#!/usr/bin/perl
脚本并赋予它们可执行权限(您可能需要将/usr/bin/perl替换为Perl解释器的路径).