in reply to variables /interpolations inside PPI::Token::Quote::Double quoted string

AFAIK, you can't. PPI doesn't seem to do any structuring inside interpolated strings. In Acme::PPIx::MetaSyntactic I just resorted to searching within the string using a regexp for anything that looks like a variable, but that will only get you so far.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
  • Comment on Re: variables /interpolations inside PPI::Token::Quote::Double quoted string