Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

how does qx select a "/bin/sh equivalent"?

by bronto (Priest)
on Jun 10, 2008 at 15:26 UTC ( #691255=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $output = qx'echo $SHELL' ;
    
    print $output ;
    
  2. or download this
          qx/STRING/
          ‘STRING‘
                  A string which is (possibly) interpolated and then exe-
                  cuted as a system command with "/bin/sh" or its equiva-
                  lent.[...]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2023-01-29 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?