Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
go ahead... be a heretic
 
PerlMonks  

Re: system and backticks

by rjt (Chaplain)
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: (23)
As of 2014-04-17 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls