My bad, i think i didn't explain it well. Actually i am working on nagios where i have a group with multiple servers information in the file.
Now i have a perl script which basically run and take the information from XML through URL.
Instead of i put the hostaddress (http://hostaddress:8161/admin/xml/queues.jsp)as a ARGV, was wondering if perl script take the host address from that file automatically.