in reply to Passing or reference to a subroutine
Use [] to create a reference to an anonymous array and {} to create a reference to an anonymous hash. See perldoc perlreftut.
some_sub(['foo','bar',baz'], { key1 => 1, key2 => 7 });
P.S. Why are you putting &'s on your subroutines? That's slightly odd (even though, as I understand it, the Llama recommends the practice of always using the &)
|
|---|