Maybe. Perl 6 does this by turning any { ... } into an eval interpolated
into the string. That might be cool to see implemented. I've never tried
hacking Perl internals, though.On Thu, Feb 20, 2014 at 5:58 PM, David Nicol <[email protected]> wrote: > yeah, me too, and that's what I recommended. That or assignment to a local > scalar prior to the interpolation. Would a Perl 5.22 that allows properly > configured objects to have their method calls interpolate be worth the > trouble? That's the question. > > > > On Thu, Feb 20, 2014 at 4:02 PM, Sterling Hanenkamp < > [email protected]> wrote: > >> I have been known to use this: >> >> "the blurf field is @{[$self->blurf]}\n" >> >> It's ugly and wouldn't be something I use in production, but it does the >> job when I'm in hurry. >> > > _______________________________________________ > kc mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/kc > -- Andrew Sterling Hanenkamp [email protected] 785.370.4454
_______________________________________________ kc mailing list [email protected] http://mail.pm.org/mailman/listinfo/kc
