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

Re: [FWP] Quine, ontology, and Perl



Jeff Pinyan writes:
> The aliasing apparently has no effect on hashes, whether they're normal or
> symbol tables.  (Try on %ENV.)

Shame on you all for not using 5.6:

  gnat# perl5.6.0 -le '%a = (qw(w a a t)); map { $_ x= 2 }  %a; print %a'
  waaatt

  gnat# perl5.00404 -le '%a = (qw(w a a t)); map { $_ x= 2 }  %a; print %a'
  atwa

In 5.6, values(%a) (and every 2nd scalar in list context %a) are
lvaluable.

Nat

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