From dbii at interaction.net Sat Jun 9 09:02:23 2007 From: dbii at interaction.net (David Bluestein II) Date: Sat, 9 Jun 2007 11:02:23 -0500 Subject: APM: Method to Read zip files? Message-ID: I have a pile of zipped files I need to parse on windows machine. Probably 100 files total. I saw there is an Archive::Zip I could probably use to unzip into memory, as I don't want to have to unzip into the file system, but has anyone used something like that? Basically a way to look into a zip file, find the constituent files, then parse them? Thanks- David ----------------------------------------------------------------------- David H. Bluestein II President & Lead Developer dbii at interaction.net ii, inc. http://www.interaction.net -- Specializing in Interactive, Database Driven Web Applications -- From bpohl at bpohl.com Fri Jun 15 22:36:56 2007 From: bpohl at bpohl.com (Bion Pohl) Date: Sat, 16 Jun 2007 00:36:56 -0500 Subject: APM: Method to Read zip files? In-Reply-To: References: Message-ID: I had to do something like this for some automation I was doing for a job. We were receiving JPG pictures that were zipped together by day, and then those zips were zipped together by week. There wasn't enough space on the machine to unzip everything so I wrote a module using Archive::Zip to list the contents of a zip and then be able to pull files from it one at a time. The biggest drawback was the speed because to pull a file from the middle or end it had to traverse the whole file to find what it was looking for. I had to leave the module with the company I wrote it for. If you aren't after speed you should be able to get what you want out of Archive::Zip. -Bion > >Message: 1 >Date: Sat, 9 Jun 2007 11:02:23 -0500 >From: David Bluestein II >Subject: APM: Method to Read zip files? >To: Austin Perl Mongers >Message-ID: >Content-Type: text/plain; charset=US-ASCII; format=flowed > >I have a pile of zipped files I need to parse on windows machine. >Probably 100 files total. I saw there is an Archive::Zip I could >probably use to unzip into memory, as I don't want to have to unzip >into the file system, but has anyone used something like that? >Basically a way to look into a zip file, find the constituent files, >then parse them? > >Thanks- > >David > >----------------------------------------------------------------------- >David H. Bluestein II >President & Lead Developer dbii at interaction.net >ii, inc. >http://www.interaction.net > -- Specializing in Interactive, Database Driven Web Applications -- > -- -- ________________ / ________ | Bion Pohl / /| | / | Relational Consulting / /_|_|______/ /| | bpohl at bpohl.com | __________ / | | | | | | | | | | Lord Gordon Kepler in the S.C.A. | | | | | | | | | | | |______|_|_| | | | / __________ | | |/ / | | / / Using Macintosh since 1985, | /_______| |/ / and I don't do Windoze. |________________/ From jeff_sumner at hotmail.com Mon Jun 18 07:30:02 2007 From: jeff_sumner at hotmail.com (Jeff Sumner) Date: Mon, 18 Jun 2007 14:30:02 +0000 Subject: APM: Method to Read zip files? Message-ID: Archive::Zip may be easier, but I usemy @args = ("unzip", "-qqt", "$ftp_dir/$zip_file");to test for a valid zip files then my @rc = `unzip -qql $ftp_dir/$zip_file`;to list the files, find the one I want into $file_to_unzipand finally my $return = `unzip -qqjo $ftp_dir/$zip_file $file_to_unzip -d $ftp_dir\n`;to unzip qq means a quiet outputt means testl means listj means Junk any directory structure they may be trying to do0 means overwrite existing files. Jeff Sumner> Date: Sat, 16 Jun 2007 00:36:56 -0500> To: austin at pm.org> From: bpohl at bpohl.com> Subject: Re: APM: Method to Read zip files?> > I had to do something like this for some automation I was doing for a > job. We were receiving JPG pictures that were zipped together by > day, and then those zips were zipped together by week. There wasn't > enough space on the machine to unzip everything so I wrote a module > using Archive::Zip to list the contents of a zip and then be able to > pull files from it one at a time. The biggest drawback was the speed > because to pull a file from the middle or end it had to traverse the > whole file to find what it was looking for.> > I had to leave the module with the company I wrote it for. If you > aren't after speed you should be able to get what you want out of > Archive::Zip.> > -Bion> > > > >> >Message: 1> >Date: Sat, 9 Jun 2007 11:02:23 -0500> >From: David Bluestein II > >Subject: APM: Method to Read zip files?> >To: Austin Perl Mongers > >Message-ID: > >Content-Type: text/plain; charset=US-ASCII; format=flowed> >> >I have a pile of zipped files I need to parse on windows machine.> >Probably 100 files total. I saw there is an Archive::Zip I could> >probably use to unzip into memory, as I don't want to have to unzip> >into the file system, but has anyone used something like that?> >Basically a way to look into a zip file, find the constituent files,> >then parse them?> >> >Thanks-> >> >David> >> >-----------------------------------------------------------------------> >David H. Bluestein II> >President & Lead Developer dbii at interaction.net> >ii, inc. > >http://www.interaction.net> > -- Specializing in Interactive, Database Driven Web Applications --> >> > -- > --> ________________> / ________ | Bion Pohl> / /| | / | Relational Consulting> / /_|_|______/ /| | bpohl at bpohl.com> | __________ / | |> | | | | | | | | Lord Gordon Kepler in the S.C.A.> | | | | | | | |> | | | |______|_|_| | > | | / __________ |> | |/ / | | / / Using Macintosh since 1985,> | /_______| |/ / and I don't do Windoze.> |________________/> _______________________________________________> Austin mailing list> Austin at pm.org> http://mail.pm.org/mailman/listinfo/austin _________________________________________________________________ Make every IM count. Download Windows Live Messenger and join the i?m Initiative now. It?s free.?? http://im.live.com/messenger/im/home/?source=TAGWL_June07 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/austin/attachments/20070618/f9b771bf/attachment.html From pmichaud at pobox.com Fri Jun 29 17:36:18 2007 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 29 Jun 2007 19:36:18 -0500 Subject: APM: Perl success stories Message-ID: <20070630003618.GA32528@host.pmichaud.com> Message from YAPC::NA in Houston: The Perl Foundation (TPF) and others are wanting to publish more "Perl success stories" to let others know where Perl is useful. If your company or organization is using Perl, and having success with it, please let us know and we'll get you in touch with the right people. It's not intended to be a big commitment of time -- they'll take care of conducting the interview and coming up with the "story". We just want to get Perl's success in front of more people. Thanks! Pm