in reply to Re: backticks execution "inside" variable (string)
in thread backticks execution "inside" variable (string)
Thank you, Bliako, for inspirative command-safeness checking example!
Although I am afraind, it won't be useful in my case, because in general, there could be anything between backticks, and nevertheless, there is some human-checking in our use case.
Therefore I am curious, if exists something like this (or I would need to implement it into my codebase myself):
my $backticketed_string = 'static text `execute this` static text `exe +cute this` ... `execute this` static text'; my $interpolated_string = interpolate_all_backtick_pairs($backticketed +_string);
It is possible, that there is no such thing in Perl modules or built-ins, and this is not meant to abuse you guys, to do this work instead of me, as said also here.
Greetings to Island of Saints!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: backticks execution "inside" variable (string)
by bliako (Abbot) on Dec 20, 2019 at 17:45 UTC |