<div class="gmail_quote">On Fri, Apr 10, 2009 at 12:40 PM, BenRifkah Bergsten-Buret <span dir="ltr">&lt;<a href="mailto:mail.spammagnet@gmail.com">mail.spammagnet@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div>
Looking more closely I realized that the OP is doing method calls &quot;$fropper-&gt;$_&quot; instead of hash lookups &quot;$fropper-&gt;{$_}&quot;.  A slice in this case would only work if you had these objects tied to a
hash class that overloaded FETCH with a method call.  I imagine that
would incur a performance penalty.<br><br>The fact that these are method calls is the reason that Phil is running into the scalar vs. list context issue.  A hash look-up have this problem.</div></div></blockquote><div><br>

Ben, thanks for noticing this ... I had to do a little research to make sense of this point. An nonexistent hash element always returns undef, but an empty return statement returns () in list context.<br><br>Thanks to everybody who replied! I learned a bunch in this thread!!<br>

<br>Phil<br><br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>-- <br>Ben<br></div></div>
<br>_____________________________________________________________<br>
Seattle Perl Users Group Mailing List<br>
     POST TO: <a href="mailto:spug-list@pm.org">spug-list@pm.org</a><br>
SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list" target="_blank">http://mail.pm.org/mailman/listinfo/spug-list</a><br>
    MEETINGS: 3rd Tuesdays<br>
    WEB PAGE: <a href="http://seattleperl.org/" target="_blank">http://seattleperl.org/</a><br></blockquote></div><br><br clear="all"><br>-- <br>==========================<br>2People citizen&#39;s network for climate action: <a href="http://www.2people.org">http://www.2people.org</a><br>

<br>Greater Seattle Climate Dialogues: <a href="http://www.climatedialogues.org">http://www.climatedialogues.org</a><br>The Great Warming coalition<br>==========================<br>