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

[no subject]



Yeap.  I missed it the first time around:

      Using a reference as a string produces both its referent's
      type, including any package blessing as described in the
      perlobj manpage, as well as the numeric address expressed in
      hex.  The ref() operator returns just the type of thing the
      reference is pointing to, without the address.  See the ref
      entry in the perlfunc manpage for details and examples of
      its use.

It doesn't warn against using a reference as a string though.  What's 
the fear there?

> Granted an object would probably count as a value in the situation at
> hand this wouldn't be what you'd want, but it's nice to know.

Would Perl be a good language for me to learn object oriented 
programming?  Or would I be better served with something like Python or 
Java?  It's been ages since I messed with C++ or Smalltalk (or 
especially Turbo Pascal 5.5), and I never really did anything on a scale 
where I could see an advantage to using OOP with all those neat 
buzzwords like polymorphism and stuff.

-- Jason


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01244" href="msg01244.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01253" href="msg01253.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> hbbs at comcast.net (Jeff Hubbs)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01209" href="msg01209.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01212" href="msg01212.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="01213" href="msg01213.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01220" href="msg01220.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="01221" href="msg01221.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01224" href="msg01224.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="01227" href="msg01227.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
<li><strong><a name="01229" href="msg01229.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="01236" href="msg01236.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01241.html">[ale] Organizing data</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01243.html">[ale] Organizing data</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01236.html">[ale] Organizing data</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01244.html">[ale] Organizing data</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01242"><strong>Date</strong></a></li>
<li><a href="threads.html#01242"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>