in reply to grep ip address from dhcpd.leases file using mac address
Maybe you simply need to chomp ARGV[0].