Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Subroutine return value

by moritz (Cardinal)
on Nov 09, 2007 at 15:58 UTC ( #649924=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://649924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-06-27 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?