Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Use of system() considered harmful

by BrowserUk (Patriarch)
on Jun 07, 2008 at 20:17 UTC ( [id://690856]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Use of system() considered harmful
in thread Use of system() considered harmful

That's why I like to avoid invoking a shell either explicitly or implicitly when calling external programs.

Isn't that exactly why system has the list argument form?

Sounds to me like you are asking for perl to restrict everyones access to useful behaviour in order to save you from yourself.

Of course, what really will happen depends on what the strings $one, $two and $three contain.

No shit Sherlock :) And the result of print $a + $b + $c; will depend upon what's in $a, $b & $c.

I once wrote that I considered ...considered harmful., harmful. And nothing I've seen in the intervening 6 years has done anything to change my mind. Most times when someone writes "XXX considered harmful", they are really saying "I just got bitten by XXX" and so I think that Perl/government/other should do something to save me from myself. And this is no exception.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2024-03-28 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found