Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: sub will not return data correctly (the way i want it to!!)

by mr_mischief (Monsignor)
on Jun 18, 2015 at 00:29 UTC ( [id://1130912]=note: print w/replies, xml ) Need Help??


in reply to Re^2: sub will not return data correctly (the way i want it to!!)
in thread sub will not return data correctly (the way i want it to!!)

return returns from the subroutine. It doesn't push data through a channel. If you want to return a collection of data from multiple loop iterations, you'll have to collect it first.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-19 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found