in reply to Adjusting variable context when workign with JSON data?

subprocess.run doesn’t subshell per default - you may replace the backticks with run from IPC::Run to avoid subshelling - see also for an older discussion.

Replies are listed 'Best First'.
Re^2: Adjusting variable context when workign with JSON data?
by ikegami (Patriarch) on Dec 04, 2024 at 20:30 UTC

        IPC::System::Simple is used by use autodie qw( system );, so it's bundled with Perl since autodie's creation in 5.10.1, and I suspect it was written for it.

        instead of outdated, I prefer to be called retro 😉
Re^2: Adjusting variable context when workign with JSON data?
by unmatched (Sexton) on Dec 03, 2024 at 21:34 UTC

    That is very good to know, thank you. I figure it's not important in this particular case as it's quite a simple script that I only run occasionally, but I'll try to remember that in the future.