Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: on the fly reference to subroutine output

by 7stud (Deacon)
on Mar 05, 2013 at 02:45 UTC ( [id://1021737]=note: print w/replies, xml ) Need Help??


in reply to Re^2: on the fly reference to subroutine output
in thread on the fly reference to subroutine output

How does 'flattening' come into play when there's only one array? I would think 'unwiding' of an array is what takes place.
  • Comment on Re^3: on the fly reference to subroutine output

Replies are listed 'Best First'.
Re^4: on the fly reference to subroutine output
by tmharish (Friar) on Mar 05, 2013 at 07:54 UTC

    There are two arrays ( one inside the other ). The outer array is the anonymous array as shown below:

    sub2( [ sub1() ] ); ^ ^ | | | --------- Inner array ------------ Outer array
    sub 2 now gets the ref of the outer anonymous array which is flattened.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found