mjd-perl-pm on Mon, 10 Jul 2000 11:21:00 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: references


> > I've noticed that references don't tend to be used a whole lot in
> > perl.  Why is that?
> 
> I believe what Nic meant by this is explicit reference passing:
> 
>     foo (\@bar);

I wasn't sure what he meant, but if he meant that, then one reason why
people don't do it more is that for scalars, it's slower to d oit that
way, because scalars are already passed by reference.
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**