in reply to deleting a non-numeric scalar within array
You could do this with in-place edition:
#perl -i.bak -pe 's/1\.1\.1\.1 hostname FQDN\n//g' /etc/hosts [download]
hth,PooLpi