in reply to sorting /etc/hosts
probably don't need perl. there's a shell command that can do this.
% man sort
so the whole thing might go something like:
sort -n /etc/hosts > /tmp/hosts.sorted mv /tmp/hosts.sorted /etc/hosts [download]
anders pearson