in reply to Re: Dereferenced Arrays
in thread Dereferenced Arrays

It's rather unusual (wasteful?) to copy the array. The following suffices:
print("@$second");

Replies are listed 'Best First'.
Re^3: Dereferenced Arrays
by SirDonkeyPunch (Novice) on Aug 19, 2009 at 00:39 UTC
    im learning so im just trying to get a grasp on all the functionality, not really trying to make utterly clean code, but moreso to understand the logic and flow of how i write programs and how i can manipulate data.
      Learning two different ways to do everything is not easier. All you need to know is where ever you normally have the array name, replace it with {$ref} when you have a reference to an array. @array is now @{$ref}. $array[0] is now ${$ref}[0] It's that simple.