in reply to Returning arrays from subroutines

It will turn @base into a list containing all of its elements, return that, then on assignment it will create @net from that list. In other words, yes, it will work as you probably are expecting. What happened when you tried it?

Replies are listed 'Best First'.
Re^2: Returning arrays from subroutines
by Lhamo_rin (Friar) on Jun 17, 2005 at 10:11 UTC
    When I tried to print @net it came out as a memory location, similar to ARRAY(0xFFC16), which made me think that it was a reference for some reason.
      similar to ARRAY(0xFFC16), which made me think that it was a reference for some reason

      This thought was correct; that is what happens when you try to print a reference. There's really not much we can do to help you with this part, though, because the code you pasted doesn't create a reference anywhere.