in reply to Stripping a-href tags from an HTML document

See also HTML::LinkExtractor.

And this:

while(<FO>) { $fc=$fc.$_; }
can be written better as: $fc = do { local $/; <FO> };

-- Hofmator