in reply to Re^2: Dereferenced Arrays
in thread Dereferenced Arrays

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.

Replies are listed 'Best First'.
Re^4: Dereferenced Arrays
by ikegami (Patriarch) on Aug 19, 2009 at 00:56 UTC
    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.