#!/usr/bin/perl -w use strict; $/ = ""; # Enable paragraph mode. $* = 1; # Enable multi-line patterns. while (<>) { s/-\n\s*//g; # Dehyphenate hyphenations. print; } exit(0);