Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: calling Unix commands

by cwest (Friar)
on Oct 18, 2000 at 20:53 UTC ( [id://37355]=note: print w/replies, xml ) Need Help??


in reply to calling Unix commands

You can use backtics ( `ls` ) to return the output of a command, or you could use the Shell module.
use Shell; print ls();
And if you have a development version of Perl laying around ( 5.7.0 :) you can check out the OO interface to Shell ( you're welcome :)
use Shell; my $sh = shell->new; print $sh->ls;
Bad namespace polution, bad!
--
Casey
   I am a superhero.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-19 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found