Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: put system(); output into my $variable -- chech for installed aplications

by Bloodnok (Vicar)
on Jan 15, 2009 at 12:57 UTC ( #736534=note: print w/replies, xml ) Need Help??


in reply to put system(); output into my $variable -- chech for installed aplications

System doesn't return anything to the caller other than the return code and signal number. Use backticks, or qx//, instead e.g. my $var = `command`; or my $var = qx/command/;

Compare system with Regexp-Quote-Like-Operators

A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-08-06 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (38 votes). Check out past polls.

    Notices?