Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl System('') question

by Lawliet (Curate)
on Nov 29, 2008 at 02:30 UTC ( [id://726711]=note: print w/replies, xml ) Need Help??


in reply to Perl System('') question

Use backquotes (or graves, or backticks, or whatever you want to call them). They are usually located to the left of the '1' key on your keyboard. They are on the same key as the tilde: ~

my $output = `eject -n`;

I'm so adjective, I verb nouns!

chomp; # nom nom nom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found