$/ = ";"; open IN,"< a.txt"; $l = ; print $l; 执行结果:abcde;这里面的$/ = ";"; 可以放在open函数后面吗?open IN,"< a.txt"; $/ = ";"; $l = ; print $l; 执行结果:abcde;

来源:学生作业学帮网 编辑:学帮网 时间:2024/04/25 15:39:08

$/ = ";"; open IN,"< a.txt"; $l = ; print $l; 执行结果:abcde;
这里面的$/ = ";"; 可以放在open函数后面吗?
open IN,"< a.txt";
$/ = ";";
$l = ;
print $l;
执行结果:
abcde;

可以,只要在前面就行.