[Perl] Perlã§ZIPãã¡ã¤ã«ã解åããã«ã¯Archive::Zipã¢ã¸ã¥ã¼ã«ã使ç¨ãã¾ãã [ä¾] #!/usr/bin/perl use Archive::Zip; #ãã¡ã¤ã«åãæå® $fileName = 'test.zip'; #ãªãã¸ã§ã¯ããä½æ my $zip = Archive::Zip->new(); #ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ã«å¤±æãããå¼·å¶çµäº die 'read error' unless $zip->read($fileName) == AZ_OK; #ãã¡ã¤ã«ã®æ°ã¯numberofMembersã§åå¾ã§ãã¾ã print "Extracting " . $zip->numberOfMembers($fileName) . " files from $fileName\n"; #ãã¡ã¤ã«ã®ä¸è¦§ãåå¾ @members = $zip->members(); for
{{#tags}}- {{label}}
{{/tags}}