Sujet : Re: perl test
De : retroguy (at) *nospam* novabbs.com (Retro Guy)
Groupes : misc.test comp.lang.miscDate : 08. Sep 2024, 00:11:41
Autres entêtes
Organisation : Rocksolid Light
Message-ID : <aa09ee406562579bb1c5723aaeffe953@www.novabbs.org>
References : 1 2 3 4 5 6 7 8
User-Agent : Rocksolid Light
On Sat, 7 Sep 2024 22:59:41 +0000, Lawrence D'Oliveiro wrote:
On Sat, 7 Sep 2024 05:07:13 -0700, Retro Guy wrote:
>
My use case was escaping a set of strings for use in a command line.
>
If you want to pass arguments to an external program, don’t bother going
through a shell if you can help it. Invoke the program and pass the
command-line arguments directly, then you don’t have to worry about
shell
specials.
That would be my preference, but I'm not sure how to do that from Perl.
My use case is internal (not code expected to run anywhere else), so
this works, but I should put some time into learning how to invoke the
php program from Perl properly when I have some time.
-- Retro Guy