The hosts file is not Perl syntax, so remove the according tag Declaring as such confuses editors. At least GNU Emacs tries to add indentation where none is wanted. So remove that tag.
[PATCH] avoid "Old package separator used in string" warnings Seems with perl 5.38.0 the old package separator (`'`) became deprecated, causing a warning when found.