in reply to Using vec to search an array

I'm not sure it has something to do with it, but you're assigning $scratch the value "domains$i", and then, in the last loop, in the vec you're getting "domain$i", without the 's'.

Replies are listed 'Best First'.
Re^2: Using vec to search an array
by b_hall (Scribe) on Jun 15, 2005 at 13:50 UTC
    Sorry, that was an unrelated typo. I've updated the code, Thanks,

    Ben