Your Mother has asked for the wisdom of the Perl Monks concerning the following question:
Is there a Perl::Critic policy to catch attempts to use method calls within interpolation? So, it would catch this, and perhaps more convoluted examples like "$ref->()" or "$obj->$meth".
say "U GOTS $account->balance LEFTZ";
If not, would you do it naïvely in PPI or something? This isn’t a big enough deal to chase a lot, I’m just curious. :P
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl::Critic policy to catch quoted execution?
by AnomalousMonk (Archbishop) on Sep 22, 2022 at 17:16 UTC | |
by Your Mother (Archbishop) on Sep 22, 2022 at 17:29 UTC | |
Re: Perl::Critic policy to catch quoted execution?
by LanX (Saint) on Sep 22, 2022 at 22:41 UTC | |
by Your Mother (Archbishop) on Sep 22, 2022 at 23:57 UTC | |
Re: Perl::Critic policy to catch quoted execution?
by Anonymous Monk on Sep 24, 2022 at 20:14 UTC | |
Re: Perl::Critic policy to catch quoted execution?
by Anonymous Monk on Sep 23, 2022 at 10:10 UTC | |
by Your Mother (Archbishop) on Sep 24, 2022 at 17:42 UTC |
Back to
Seekers of Perl Wisdom