#!/bin/perl while () { m/(\w+\.\w+\n)/; print $1; }