in reply to Removing Enter marks between Lines
open FILE, $filename; while (<FILE>) { chomp($_); # removes \n. # do something to $_ }
Taking another look at your post, it seems as if what you actually want to do is remove paragraph tags from your html. In which case, apart from what others have said, you'll be wanting to look at a regex that looks more like: $new=~s/<p>|<\/p>//gsi
|
|---|