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

Re: [FWP] JAPH made up entirely of double-chars?



alex avriette wrote:
> Curiously, I get a different number. But no matter what I assign it I get
> that same number. So I dont think it is "converting" the number to a
> scalar per se.

No, it's converting a scalar (any scalar) to a number, just
as Sean said.  In these tests, it's numericizing a ref, via
the same mechanism that allows refs to be compared using ==
(I suppose).  So the value of the number depends on the 
value of the ref.

  $= = \$x; print "$=\n";
  $= = \$y; print "$=\n";
  $= = \$a; print "$=\n";
  $= = \$b; print "$=\n";
  135104960
  135119868
  135120012
  135120072

-- 
John Porter

Like music?  Then you're gonna love this.
I was into these dudes before anybody.
Asked me to be the manager.


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