I want the output like:

Karthik is the author of Perl Magic and it is published by ORielly.
Mark is the author of Perl for Dummies it is published by ORielly.


Can someone help me out?? please..

Thanks in advance