Re: Help passing data to subroutine

2009-12-01 Thread Williamawalters
hi barry -- In a message dated 12/1/2009 5:34:34 PM Eastern Standard Time, bbre...@stellarmicro.com writes: > I have a situation where I specifically want to pass the name of an > array to a subroutine, and allow that subroutine to modify values in > the caller's copy of the array. this is c

Re: Help passing data to subroutine

2009-12-01 Thread Serguei Trouchelle
Barry Brevik wrote: > I have a situation where I specifically want to pass the name of an > array to a subroutine, and allow that subroutine to modify values in the > caller's copy of the array. my @arr = eval '@' . $name; Though PBP says it's bad, because it's compiling during eval so it takes

Re: Help passing data to subroutine

2009-12-01 Thread Michael Ellery
Barry Brevik wrote: > Using Active Perl 5.8.8. > > I have a situation where I specifically want to pass the name of an > array to a subroutine, and allow that subroutine to modify values in the > caller's copy of the array. > > I feel incredibly stupid, because I have a bunch of Perl books and

Help passing data to subroutine

2009-12-01 Thread Barry Brevik
Using Active Perl 5.8.8. I have a situation where I specifically want to pass the name of an array to a subroutine, and allow that subroutine to modify values in the caller's copy of the array. I feel incredibly stupid, because I have a bunch of Perl books and have worked on this a long time, a