Passing References To Subroutines

2001-08-29 Thread Jon Williams
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

Re: Passing References To Subroutines

2001-08-29 Thread Karthik Krishnamurthy
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