TQuid has asked for the wisdom of the Perl Monks concerning the following question:
Multiple calls to $entry->get_value('telephoneNumber'), for example, don't get successive values. I'd be most grateful for any help that anyone may be able to give.my @entries = $mesg->entries; if ( $layout eq 'tel' ) { my @attributes = qw(cn uid pager telephoneNumber); my $format = "%-20s %-12s %-15s %s\n"; printf $format, qw(Name E-Mail Pager Phone); print '-' x 75, "\n"; foreach my $entry ( @entries ) { my @line; foreach my $attribute ( @attributes ) { push @line, ( $entry->get_value($attribute) || 'none' ); } printf $format, @line; } }
--TQuid
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiple values per attribute from a Net::LDAP query?
by merlyn (Sage) on Nov 27, 2000 at 22:29 UTC | |
|
Re: Multiple values per attribute from a Net::LDAP query?
by TQuid (Sexton) on Nov 27, 2000 at 22:29 UTC | |
|
Re: Multiple values per attribute from a Net::LDAP query?
by wardk (Deacon) on Nov 27, 2000 at 22:28 UTC | |
|
Re: Multiple values per attribute from a Net::LDAP query?
by noname (Sexton) on Aug 14, 2015 at 07:25 UTC |