in reply to Script to Script

When arguments are passed to a cgi script following the "?" mark in the URL, then whatever follows the "?" mark is copied into an environment variable named "QUERY_STRING." I think, if your perl script creates an environment variable named QUERY_STRING and then pass the arguments thru that, then run the perl script, it will work. But I haven't tested it. I just think, it would work, because it makes sense. Lol

Replies are listed 'Best First'.
Re^2: Script to Script
by Don Coyote (Hermit) on Jul 22, 2019 at 23:00 UTC

    perlsec Untaint incoming data from params hashes

Re^2: Script to Script
by daxim (Curate) on Jul 23, 2019 at 11:06 UTC
    It does work.
    $ENV{QUERY_STRING} = 'year_required=2019'; system 'perl', 'calendar.cgi';
Re^2: Script to Script
by Anonymous Monk on Jul 22, 2019 at 22:05 UTC
    Lol, You shouldn't talk about things you don't know about.