Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to collect the stdout of a subroutine call?

by disciple (Pilgrim)
on Apr 19, 2004 at 18:35 UTC ( [id://346392]=note: print w/replies, xml ) Need Help??


in reply to How to collect the stdout of a subroutine call?

If you want to return the values into individual variables....
($name, $address, $city, $phone) = &getInfo(); print "Name: $name\nAddress: $address\nCity: $city\nPhone: $phone"; sub getInfo(){ return ("xxx", "Main street", "Boston", "123 234 2345"); }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-26 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found