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
|
|---|