Perl是否在Solaris上的源代码中正确处理Windows样式的行结尾?换句话说,如果Perl脚本在一行末尾有一个^M
,那么当它在Solaris机器上运行时会perl正确解析它吗?
if(/fmr_dest/) {
do_traffic($dbc, 'rprice', '-MSG_RESP', $customer_no, $data{$customer_no}{$action_type});
next;
}
if(/fmr_rate/) { ## Change to customer rates^M
do_traffic($dbc, 'rprice', '-MSG_RESP', $customer_no, $data{$customer_no}{$action_type});^M
next;^M
}^M
if(/conn/) {
...
答案 0 :(得分:4)