Deutsch English Français Italiano |
<aa09ee406562579bb1c5723aaeffe953@www.novabbs.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail From: Retro Guy <retroguy@novabbs.com> Newsgroups: misc.test,comp.lang.misc Subject: Re: perl test Date: Sat, 7 Sep 2024 23:11:41 +0000 Organization: Rocksolid Light Message-ID: <aa09ee406562579bb1c5723aaeffe953@www.novabbs.org> References: <7e8b459c7297ad24dde92aa1fd073b21@www.novabbs.com> <877cbx4orz.fsf@tilde.institute> <51e8c77eaba5ea4084d0a234a71a4f2e@www.novabbs.com> <vbdoi9$m19l$1@dont-email.me> <7e23f0180a430b8429af2514ba56463b@www.novabbs.org> <vbgflq$15f5c$1@dont-email.me> <66f114a9d20bf03cfb305a04d807da6492511772@i2pn2.org> <vbilst$1j26j$5@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="1233398"; mail-complaints-to="usenet@i2pn2.org"; posting-account="gg+dDWHMzVrdxGO9Gmt8aqyeWDXqlxfqiuS0jX/WMXY"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$8D6Z2BbiGfymLf0U4Dru..31gLdQfU7pPsz0YAjAP79AjJHRYmbk2 X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046 X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG| Bytes: 2122 Lines: 19 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