[EMAIL PROTECTED] (Tom Mornini) wrote:
>On Fri, 1 Jun 2001, Scott Alexander wrote:
>> in my code I have
>>
>> my @upper_id ;
>>
>> during the code I pass the array by reference to a sub routine and
>> push values onto it.
>>
>> push @{$upper_id}, $row[0] ;
>
>This is odd syntax! Why not just:
>
>push @upper_id,$row[0];
>
>I hope this isn't some sort of soft reference.

Scott's is correct - he said the push() happens inside a different
subroutine, and the array is passed to it by reference.

Could be shortened to 'push @$upper_id, $row[0];', but no biggie.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to