为什么我的换行符不起作用?
我写了一个简单的cgi小程序,功能是打开一个文本文件,并显示在浏览器内,运行正常,也可以显示出来,但是没有换行,这是为什么呢?
print "Content-type: text/html\n\n";
if ( $cgi->param('action') eq 'display' )
{
open($FH1,$filepath) or print "can't open file <$filepath> $!\n"; while(<$FH1>)
print ;
}
close($FH1);
}
但是我的这条语句好像又换行了,不理解。多谢!
print "<a href=dispcon?filepath=$filepath/$name>$name</a>"." <br> \n";