ScriptX
(
P/PE/PERLANCAR/ScriptX-0.000004.tar.gz, PERLANCAR, 2020;
MetaCPAN
)
PTX_IMPORT_JSON:
{
last unless defined $ENV{SCRIPTX_IMPORT_JSON};
require JSON::PP;
log_trace "[scriptx] Reading env variable SCRIPTX_IMPORT_JSON ...";
my $imports = JSON::PP::decode_json($ENV{SCRIPTX_IMPORT_JSON});
_import(@$imports);
$read_env++;
last READ_ENV;
}
}
if (@_ && $_[0] =~ /\A-
DumpStash> plugin handler in the
C<after_run> event at priority 99.
=head2 SCRIPTX_IMPORT_JSON
String (JSON-encoded array). This is an alternative to L</SCRIPTX_IMPORT> and
has a lower precedence (w