Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

ldif file

by perlknight (Pilgrim)
on Dec 05, 2009 at 22:33 UTC ( #811272=perlquestion: print w/replies, xml ) Need Help??

perlknight has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I know you could you use Net::LDAP::LDIF to read ldif file. But I am in a bit of a situation, my ldif file is gziped. When unzipped it's around 5Gbytes. I am wondering if there is a way of handling gzip file with Net::LDAP::LDIF file. Has anyone run into the same problem as I am? Thanks.

Replies are listed 'Best First'.
Re: ldif file
by gmargo (Hermit) on Dec 05, 2009 at 22:46 UTC

    It depends on what you are doing. Are you only reading the file, or writing it too? Net::LDAP::LDIF will take an open file handle as a constructor argument. If just reading, you could perhaps set up a stream where it reads from a gunzip process. If read/writing, perhaps it's best to just uncompress it on disk and recompress it afterwards.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://811272]
Approved by GrandFather
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2023-05-30 18:32 GMT
Find Nodes?
    Voting Booth?

    No recent polls found