Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: Learning to *really* love references
by LanceDeeply
|
|