Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: reference array and pass ref to sub

by smokemachine (Hermit)
on Mar 07, 2009 at 00:42 UTC ( [id://748992] : note . print w/replies, xml ) Need Help??


in reply to reference array and pass ref to sub

@a = (1 .. 10); func(\@a); sub func{ @b = @{ shift() }; for(@b){ print $_, $/; } }