headtail.pl: Trivial script combining simple head and tail

This is a trivial perl script for extracting the first and last lines
from stdin.