LPM: "" interpolates method calls?

Rich Bowen rbowen at rcbowen.com
Sun Nov 28 09:50:07 CST 1999


"Steve Lane (ZFX)" wrote:
> 
> On Sat, 27 Nov 1999, Rich Bowen wrote:
> > Which seems to mean to me that $foo is getting interpolated in the "",
> > but $foo->method is not. How do I get $foo->method to get correctly
> > called inside of ""?
> 
> strictly speaking, "$foo->method" -is- getting correctly
> interpreted, because method calls simply do not get
> interpolated inside "".

Yes, when I finally read the docs correctly, I saw this. Irritating, but
that's what I get for ignoring the documentation.
 
> you can always do the silly "... @{[$foo->method]} ..."
> if you really want the method call to be evaluated
> within the "".

That is pretty silly looking, isn't it? But for some reason, I'm having
trouble getting DBI to understand queries that have string concatenation
in them. Could be I was just working on it for too long at a stretch,
and it will work correctly this time.

Thanks for the info.

Rich
-- 
http://www.ApacheUnleashed.com/
Lexington Perl Mongers - http://lexington.pm.org/
PGP Key - http://www.rcbowen.com/pgp.txt



More information about the Lexington-pm mailing list