在 Windows 中,我们可以将文件的扩展名与程序相关联。 例如,由于扩展名,文件test.pl可以由安装的Perl解释器运行pl。 在 linux 中,虽然它需要#!/usr/bin/perl作为第一行。 这是因为在 Linux 中文件扩展名和程序之间没有关联吗?
test.pl
Perl
pl
#!/usr/bin/perl
executable filenames file-opening
executable ×1
file-opening ×1
filenames ×1