All your answers can be found in "The Camel Book" (Programming Perl)!!
It may take some time indexing and reading through it, but the rewards are worth it.
IMHO, there is no better language for extracting and manipulating data.
Perl makes easy things easy and difficult things possible
Hint: check out the man pages for perl (it's a book in itself)