deathbygoats has asked for the wisdom of the Perl Monks concerning the following question:
my $result = $ldap->search ( base => "dc=example,dc=com", scope => "sub", filter => "mailLocalAddress=$alias\@example.com", attrs => $attrs ); if ($result->entries || grep(/\b$alias\b/i, @aliases)) { if ($alias =~ /\d$/) { $alias++; print $alias; } elsif
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: incrementing strings
by Roy Johnson (Monsignor) on Mar 14, 2005 at 22:00 UTC | |
|
Re: incrementing strings
by ikegami (Patriarch) on Mar 14, 2005 at 22:02 UTC | |
|
Re: incrementing strings
by hv (Prior) on Mar 15, 2005 at 00:52 UTC | |
|
Re: incrementing strings
by Roy Johnson (Monsignor) on Mar 15, 2005 at 00:45 UTC | |
|
Re: incrementing strings
by moot (Chaplain) on Mar 14, 2005 at 22:01 UTC | |
by ysth (Canon) on Mar 15, 2005 at 07:02 UTC | |
|
Re: incrementing strings
by ambrus (Abbot) on Mar 15, 2005 at 16:46 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |