Read the DN's into a hash using a pattern, the UID being the key and the DN being the value. Then order the UID's via a sort. Then foreach over the sorted keys. Jarrod On Mon, Aug 17, 2009 at 10:11 AM, Jyotishmaan Ray<jyotishmaan@yahoo.com> wrote: > Dear All, > > I have to read the uid from this file for each student entry, which is > itself a LDIF file, and extract it in another file, in a serial order. > > > Can you provide me the simplest way to do it. > > > > Thanks, > Jyotishmaan Ray > Moderator Of Spirituality-Paradise Group > http://yahoogroups.com/group/Spirituality-Paradise > > Are You Spiritually Aware !!! Are You Enjoying Yourself !!! See What All > You Had Been Missing !!!! > Please Join Immediately By Sending A Blank Mail @ > Spirituality-Paradise-subscribe@yahoogroups.com > > > > > > -- > To unsubscribe, e-mail: beginners-unsubscribe@perl.org > For additional commands, e-mail: beginners-help@perl.org > http://learn.perl.org/ > >Thread Previous