"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator qx (Single Quote Execute)

Operator qx

The Single Quote Execute operator.

my $value = trim(qx(ping google.com));
say "Value is '$value'";
// PRINTS
// Value is 'Pinging google.com [212.115.105.72] with 32 bytes of data:
// Reply from 212.115.105.72: bytes=32 time=27ms TTL=61
// Reply from 212.115.105.72: bytes=32 time=28ms TTL=61
// Reply from 212.115.105.72: bytes=32 time=28ms TTL=61
// Reply from 212.115.105.72: bytes=32 time=30ms TTL=61
// 
// Ping statistics for 212.115.105.72:
//     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
// Approximate round trip times in milli-seconds:
//     Minimum = 27ms, Maximum = 30ms, Average = 28ms'

To see a list of all the operators go here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org