No such thing as a small change | |
PerlMonks |
Re: Learning to *really* love referencesby LanceDeeply (Chaplain) |
on Jul 30, 2002 at 15:17 UTC ( [id://186229]=note: print w/replies, xml ) | Need Help?? |
My question is: What's the commonly accepted syntax to do this? I've never used: foreach my $record (@{$array_ref}) { The notation I'm comfortable w/ is: foreach my $record ( @$array_ref ) { Is there an accepted standard? astaines: since you said you're still learning about refferences - you might want to try deref'ing them like so:
Also, you may want to checkout wantarray for returning array's or their references to the caller. Hope this helps
In Section
Meditations
|
|