Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: System() or the like (code)

by deprecated (Priest)
on Sep 18, 2001 at 02:48 UTC ( #112996=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://112996]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2023-06-02 17:41 GMT
Find Nodes?
    Voting Booth?

    No recent polls found