in reply to I thought I found a good reason to use backticks in a void context, but I was wrong.
Using something in a void context means you're throwing away any return value. This may or may not be a good idea. (Hint: it's almost *never* a good idea.)
In this particular example, since Net::Ping is available as part of the Core distribution, I'd suggest using that module instead of anything that involves shelling out to the OS.
From the man page:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I think I just found a good reason to use backticks in a void context.
by OfficeLinebacker (Chaplain) on Jan 14, 2007 at 01:42 UTC |