while (<>) { if ( not /^/ ) { chomp; $_ = "<para>" . $_ . "</para>\n"; } print; }