On Jun 18, 7:12 pm, [EMAIL PROTECTED] (Dakin999) wrote: > Hi, I am trying to write the script myself and now stuck at some > thiong that I am pretty sure have been done by others. Any help will > be significant. > > Ok, I have created an array and now I want to read from this array the > elements and put them in a LDIF format. Something like this: > > dn: uid=xxx,cn=zzz,O=xyz,C=OO > objectClass: inetOrgPerson > objectClass: organizationalPerson > objectClass: person > objectClass: top > > I am trying to work with "sprintf" in perl, but struggling with the > correct syntax for the output to be like above. > > Any help ???
maybe this helps sprintf("n: uid=%s,cn=%s,O=%s,C=%s",$var1,$var2,$var3,$var4); http://perldoc.perl.org/functions/sprintf.html David Romero -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/