#!/usr/bin/perl use strict; use warnings; local $_ = do { local $/; }; while( /

(\w+)<\/p>\s*

([^<>]*)/g ) { my $title = $1; printf "%20s %s", $title, $2 =~ s/\s*\z/\n/r; } __DATA__

Telephone

0123-4 56 78 90

Telefax

#### Telephone 0123-4 56 78 90 Telefax