On Fri, 1 Jun 2001, Ken Williams wrote:

> >> 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.

Yes, that's obvious, now that you've pointed it out and I've read
the post that I was responding to. :-) Sorry for that everyone, and
Scott in particular.

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

No biggie certainly.

-- 
-- Tom Mornini
-- InfoMania Printing and Prepress

Reply via email to