Re: Problem with pass by reference

2003-07-28 Thread Jeff 'japhy' Pinyan
On Jul 28, Pandey Rajeev-A19514 said: >In this subroutine, @FORMATTED_OUTPUT was filled up as a 2 dimensional >array $FORMATTED_OUTPUT[$i][$j]. >sub ABC { >.. SOME CODE >return (\$rows, \$cols, [EMAIL PROTECTED]); >} WHY are you returning a reference to a scalar? If $rows is a reference to

Re: Problem with pass by reference

2003-07-28 Thread Sudarshan Raghavan
Pandey Rajeev-A19514 wrote: Hi, The dimension of the data increases by each pass by reference. In this subroutine, @FORMATTED_OUTPUT was filled up as a 2 dimensional array $FORMATTED_OUTPUT[$i][$j]. sub ABC { .. SOME CODE return (\$rows, \$cols, [EMAIL PROTECTED]); } In subroutine DEF, ABC