http://qs1969.pair.com?node_id=112996


in reply to System() or the like

Um, I am surprised nobody has mentioned qx//. I tend to prefer qx{ foo } over backticks because it is much easier to see at high resolution.

Also, several shell programming books I have read say that the use of backticks is, er, deprecated. They prefer to use $(), which qx{} somewhat resembles.

Just my too sense.

brother dep

--
Laziness, Impatience, Hubris, and Generosity.

Replies are listed 'Best First'.
Re: Re: System() or the like (code)
by Jonathan (Curate) on Sep 18, 2001 at 11:53 UTC
    I've not heard that Perl's backticks are deprecated. The $() syntax is a ksh feature, which by the way nests very easily, and is not available in sh. I don't agree that $() looks like qx{} but regardless agree that it's a more elegant solution.