Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: system and backticks

by rjt (Deacon)
on Jun 07, 2010 at 15:20 UTC ( #843512=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cmd = 'echo "Hello World" && exit 2';
    my $sys_result = system($cmd);
    ...
    
    my $qx_result = `$cmd`;
    print "qx// returned `$qx_result'; \$? = $?\n";
    
  2. or download this
    Hello World
    System returned `512'; $? = 512
    qx// returned `Hello World
    '; $? = 512
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2015-07-01 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls