in reply to regular expressions and substituting in variables.
_ @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/g} # now I would save this dn and other stuff now. print @dn; print "\tou= should be $number\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regular expressions and substituting in variables.
by Fastolfe (Vicar) on Jan 23, 2001 at 02:26 UTC | |
|
Re: Re: regular expressions and substituting in variables.
by chipmunk (Parson) on Jan 23, 2001 at 02:26 UTC | |
by Pug (Monk) on Jan 23, 2001 at 02:49 UTC | |
by chipmunk (Parson) on Jan 23, 2001 at 02:57 UTC |