<div dir="ltr">I have been known to use this:<div><br></div><div>"the blurf field is @{[$self->blurf]}\n"</div><div><br></div><div>It's ugly and wouldn't be something I use in production, but it does the job when I'm in hurry.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 2:42 PM, David Nicol <span dir="ltr"><<a href="mailto:davidnicol@gmail.com" target="_blank">davidnicol@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><br></div>A common Perl newbie error is to try to use an object accessor method in an interpolative context and expect to get the value, like so<br>
<br></div>     DEBUG and print "the blurf field is $self->blurf\n";<br>
<br></div>which (of course) doesn't work, because blurf is a method call, not a syncactic container access like $self->{blurf}.<br><br></div>An extension to Perl that would allow that to work would have to hook back<br>

into the interpolation process.<br><br></div>Anyone for tinkering under perl's hood towards defining a package attribute<br>that would indicate that method syntax interpolates?<span class="HOEnZb"><font color="#888888"><br>
<div><div><div><div><div><br><br clear="all">
<br>-- <br><div dir="ltr"><pre style><span style="font-family:courier new,monospace"><font>"Sing, cuckoo, sing.</font><br><font>Death is a-comin' in.</font><br><font>Sing, cuckoo, sing.</font><br>
<font>Death is a-comin' in" -- Tuli Kupferberg</font></span></pre></div>
</div></div></div></div></div></font></span></div>
<br>_______________________________________________<br>
kc mailing list<br>
<a href="mailto:kc@pm.org">kc@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/kc" target="_blank">http://mail.pm.org/mailman/listinfo/kc</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Andrew Sterling Hanenkamp<br><a href="mailto:sterling@hanenkamp.com">sterling@hanenkamp.com</a><br>
785.370.4454
</div>