Perl读取文件的两种经常使用方式

Perl读取文件的两种经常使用方式 转载▼ 总体读入,逐行处理 open(FILE,"<","/home/chenmi/.bashrc")||die"cannot open the file: $!\n"; @linelist=<FILE>; foreach $eachline(@linelist){     print $eachline; } close FILE; 逐行读入,边读边处理 op
相关文章
相关标签/搜索