my $output = `ping $host`;
This is the simplest option and is probably OK for a command such as ping which will only take a short amount of time to run.
In reply to Re: storing result in variable
by inman
in thread storing result in variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |