perl special charecter

时间:2014-07-22 23:09:35   收藏:0   阅读:293

 

read a file line by line

mamicode.com,码迷
#!/usr/bin/perl
use strict;
use warnings;

my $dir ="./tmp";

open (FH, "<$dir/txn-history.txt") or die "Couldn‘t open $dir/txn-history.txt, $!"."\n";
while(<FH>) {
print "$_";
}
mamicode.com,码迷

 

perl special charecter,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!