use strict; use warnings; use configthing qw(); our configthing $cfg = new configthing; emonitor::list_hosts($cfg, \@hosts);