关于将windows下的文件换行符转为unix换行符

关于将windows下的文件换行符转为unix换行符

在windows下文件的换行符\n用16进制看是“0D 0A”,在unix下是“0A”。
不知道怎么将文件转为unix下的换行符啊?perl程序是要在windos下面跑的。
---------------------------------------------------------
脚本代码:
#!user/bin/perl -w

open(DBFILE,">tmpperl.txt") || die "警告:打开tmpperl.txt文件失败!$!\n";
print DBFILE "hello\n";
print DBFILE "work\n";

close(DBFILE);
----------------------------------------------------------
windows下的结果:
00000000h: 68 65 6C 6C 6F 0D 0A 77 6F 72 6B 0D             ; hello..work.

unix下的结果:
00000000h: 68 65 6C 6C 6F 0A 77 6F 72 6B 0A                ; hello.work.

改一下$\就好啦....

QUOTE:
$\
The output record separator for the print operator. If defined, this value is printed after the last of print's arguments. Default is undef. (Mnemonic: you set $\ instead of adding "\n" at the end of the print. Also, it's just like $/, but it's what you get "back" from Perl.)

大侠,我还是看不懂应该如何写啊。