Have been browsing the Camel book and others and I
think I'm a little confused regarding the concept of
passing array hash references to subroutines.
As far as I understand (and please please correct me
if I'm wrong) you pass array and hash references to
subroutines so that you don't have
sub foo {
my @this_array = ( one, two, three );
bar ( @this_array );
}
sub bar {
my @that_array = @_;
}
So I'd pass a reference instead:
sub foo {
my @this_array = ( one, two, three );
bar ( \@this_array );
}
sub bar {
my $that_array = @_;
Problem. It