Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Subroutines and Passing data ...

by aukjan (Friar)
on Jun 13, 2005 at 13:21 UTC ( [id://466150]=note: print w/replies, xml ) Need Help??


in reply to Subroutines and Passing data ...

You can return more values by passing them out in an array, so you were on the right track:
sub test { .... return ($mes1,$mes2); } @array = test; -or- ($val1,$val2) = test;

.:| If it can't be fixed .. Don't break it |:.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-20 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found