in reply to Subroutine return value

You have to assign the return value of your subroutine:

my ($result1, $result2) = DoList($List, $tmp, $var);

There's no need to pass $Results1, $Results2 to your sub.

Replies are listed 'Best First'.
Re^2: Subroutine return value
by monk2b (Pilgrim) on Nov 09, 2007 at 16:18 UTC
    Thank you for the quick response.

    I got 99 problems, but a @%$()_ ain't one.