in reply to reference array and pass ref to sub
@a = (1 .. 10); func(\@a); sub func{ @b = @{ shift() }; for(@b){ print $_, $/; } } [download]