in reply to Ping host
=~ binds a scalar expression to a pattern match. So you could do "@a" =~ ... (which would interpolate the array's contents into a string (space-separated)), or simply assign what the backticks return to a scalar variable (instead of an array) in the first place.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Ping host
by kingjamesid (Acolyte) on Oct 28, 2009 at 15:48 UTC | |
by almut (Canon) on Oct 28, 2009 at 16:03 UTC | |
by jakobi (Pilgrim) on Oct 28, 2009 at 16:12 UTC | |
by almut (Canon) on Oct 28, 2009 at 16:37 UTC |