our $curl="/usr/bin/curl -G 'http://localhost:8080/v3"; # ... sub getHosts { my $self = shift; my $cmd=sprintf("%s/nodes 2>/dev/null",$curl);