原帖由 "apile" 发表:
http://search.cpan.org/~mjd/Tie-File-0.96/lib/Tie/File.pm
DESCRIPTION ^
Tie::File represents a regular text file as a Perl array. Each element in the array corresponds to a record in the file. The..........
原帖由 "run309" 发表:
open (FILE,"file.txt" ;
$a=<FILE>;;push(@a,$a);
while (<FILE>
{ push(@a,$_);
shift@a;
}
print @a;
close FILE;
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |