Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: unix command with system

by dominix (Deacon)
on Jan 17, 2004 at 07:59 UTC ( [id://322020]=note: print w/replies, xml ) Need Help??


in reply to unix command with system

Some Monks have given you a better way to use your environmental values, but if you still want to use system command you have to output something and get it back using backtick if you want it to be stored in a variable, because (perl 's)system return an exit status, not the output of the command eg
my $value = `echo $one/$two`;
--
dominix

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-24 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found