in reply to Re: What's wrong with my code? [from a beginner]in thread What's wrong with my code? [from a beginner]
my @array = (1,2,3); test (); sub test { print $array[0]; } #prints 1 [download]