Thank you so much for your reply.
I am trying to build my own source editor because due to oddness in the way my mind works there a very few things that work the way I expect them too which causes me much frustration.
I am sorry that I did not give sufficient detail. It was due partly to embarrasment, I had installed Gtk2::SourceView2 first from RPM and when it seemed broken, uninstalled it and installed in from CPAN. When I run the sample code from the CPAN page I get the error "Can't locate object method "new" via package "Gtk2::SourceView2"". I read SourceView2.pm and found nothing that helped. I tried to install Gtk2::SourceView but ran into trouble because it relies on old libraries. I finally looked in the source folder of Gtk2::SourceView2 and found an example that works and will help a lot (it does not use Gtk2::SourceView2->new()).