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

Re: [FWP] Constants as array refs



On 23 Mar 2000, at 15:39, Ronald J Kimball wrote:

> > It is (very unfortunately) necessary to remember that constants
> > defined with "use constant" are actually subroutines.
> > 
> > 	for ( @{ &CARRAY } ) { ...
> 
> Using the & syntax prevents Perl from optimizing calls to constant
> subroutines.

I don't understand...  I didn't think there was a semantic difference 
between:
   a()
and
   &a
but apparently there is..  ????

  /Bernie\
-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:bernie@fantasyfarm.com     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe