首页 > 代码库 > perl special charecter

perl special charecter

  • $_

 

  • $PROCESS_ID
  • $$

read a file line by line

#!/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 "$_";
}