I have a template that gives hints on how to setup (and how
many of ) a Certificate Authority. One of the
things I have to support is given a template and a certain
string replace NUM by the number of times done.
<CODE>
@s_dn=("c=US,ou=NUM,cn=foo", "c=DE,ou=NUM,cn=foo");
@dn=@s_dn;
my $number=0;
for(my $i=0; $i<3; $i++,$number++)
{
for(@dn) { s/NUM/$number/go}
# now I would save this dn.
print @dn;
print "\tou= should be $number\n";
<CODE>