On Wed, 9 Mar 2005 14:03:54 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi; > > I'm using Archive::Zip to unzip a bunch of CSV files that I want to extract > information from. The problem is that when I extact a file, and I try and > read it into an array for line by line handling, the system doesn't see the > line breaks. Has anyone run into this? > > Here's the relevant snippet: > > @members = $archive_in->members(); > foreach (@members) { > my @contents = $archive_in->contents($_); > foreach (@contents) { > #line handling and parsing stuff goes here > } > } [---]
Hi John. I haven't run across your problem, but I personally would start by looking at the $member->isTextFile( ) or $member->isBinaryFile() flags for your zip member-item. If binary, maybe things are getting "thrown off" and you have to split by looking either for a \n or a \n\r (if PC-format.) Just ideas, HTH KC _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs