in reply to Catalyst, LDAP User Auto_complete and arrays with grep

your auto_complete_result function is taking a reference to @ldap_users array....so it should also work by passing a reference to @found_users, without the needless array copy...like so
$c->res->output( $c->prototype->auto_complete_result(\@found_users));
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re^2: Catalyst, LDAP User Auto_complete and arrays with grep
by ghenry (Vicar) on Mar 31, 2006 at 14:56 UTC

    It doesn't ;-)

    That's what I was asking.

    If I swap @found_users back to @ldap_users without the copy, nothing appears, only with the copy. If I don't use grep and just leave the array as is, it works fine. Just with no filtering.

    I don't know why....

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!