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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 03:15:17
$/=";";openIN,"$/=";";openIN,"这里面的$/=";";可以放在open函数后面吗?openIN,"$/=";";$l=;print$l;执行结果:abcde;$/=";";

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

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