I tried this also, does not work. In your opinion is it worthwhile to hack the Net::LDAP::LDIF module in order to have the possibility to convert from LDIF into objects without a need to deal with temporaneous files ?
thx a bunch reinhard "Christopher A Bongaarts" <[EMAIL PROTECTED]> 29/11/2004 22:09 To [EMAIL PROTECTED] cc Subject Re: Read LDIF from Perl variable In the immortal words of [EMAIL PROTECTED]: > Thank you, I tried this out and, really, it opens my variable as if it > would be a file. However, there's then a little problem, may be I'm > blind and do not see, ... anyway. > > If I pass this filehandle to LDIF, LDIF can't use it . > > I've seen that the first thing the new procedure does is to call > ref($file). If this is true, then it thinks it's a filehandle. However > I did'nt achieve to get this true in any way. My fault ?? > thx for any advice, I didn't post this to the group, because I would > like to make sure first that's not an absolute idiocy from me ....... Instead of passing the filehandle directly, pass a reference to it: $ldif = new Net::LDAP::LDIF (*FH{IO}); See if that works... %% Christopher A. Bongaarts %% [EMAIL PROTECTED] %% %% Internet Services %% http://umn.edu/~cab %% %% University of Minnesota %% +1 (612) 625-1809 %%