Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-03-28 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (66 votes). Check out past polls.

    Notices?