open LOG, "home.txt" or die $!; while() { print "$1
" if m/\b([\w\d]+)$/; } close LOG;