实现脚本

use strict ;

my $fileName = "/Users/chenfool/Desktop/sequoiadb-大数据平台构建.pdf" ;

my $outFile = "/Users/chenfool/Desktop/chentest.pdf" ;

my $buff ;

open (IN, $fileName) ;

open (OUT, ">$outFile") ;

binmode (IN) ;

binmode (OUT) ;

read (IN, $buff, 14746840) ;

#print $buff . "\n" ;
print OUT $buff ;

close (IN) ;

close (OUT) ;

 

这里并没有用到 pack 和 unpack 

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-02-08
  • 2021-12-27
  • 2021-11-10
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
相关资源
相似解决方案