⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uncomp2.t

📁 source of perl for linux application,
💻 T
字号:
BEGIN {    if( $ENV{PERL_CORE} ) {	@INC = '../lib';	chdir 't';    }}require IO::Zlib; # uncomp2.t is like uncomp1.t but without 'use'sub ok{    my ($no, $ok) = @_ ;    #++ $total ;    #++ $totalBad unless $ok ;    print "ok $no\n" if $ok ;    print "not ok $no\n" unless $ok ;}print "1..10\n";$hello = <<EOM ;hello worldthis is a testEOM$name = "IO-Zlib-test";if (open(FH, ">$name")) {    binmode FH;    print FH $hello;    close FH;} else {    die "$name: $!";}ok(1, $file = IO::Zlib->new());ok(2, $file->open($name, "rb"));ok(3, !$file->eof());ok(4, $file->read($uncomp, 1024) == length($hello));ok(5, $file->eof());ok(6, $file->opened());ok(7, $file->close());ok(8, !$file->opened());unlink($name);ok(9, $hello eq $uncomp);ok(10, !defined(IO::Zlib->new($name, "rb")));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -