On 22/11/04 10:12 am, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

> Dear List,
> 
> I had a look at the Net::LDAP:LDIF module. As I understand I can read LDIF
> from a file.
> I have however LDIF in a perl variable. Is there a easy way to use the
> variable instead of a file ? What I want to avoid is to use the IO System
> if not necessary.
> 
> Or should this change be made at the module ? Add a parameter in the
> constructor ?

The LDIF code is quite oriented towards reading and writing to file handles,
so it wouldn't be simple to change.

Are there any perl classes around which can create a pseudo file handle with
a backing string instead of a file? You'd get the overhead of going through
the IO code, but you wouldn't touch the disk...

Cheers,

Chris


Reply via email to