darkladen has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm doing with the library SCREEN tests but have not had good results. My version of Ubuntu Linux is 10.10 and the package that I install Ubuntu as the page for the version 10.10 is the library "libgtk2-perl-doc". I installed this package but my script still does not work. A small sample script that I have is this:
#!/usr/bin/perl -w use strict; use warnings; use Gtk2 -init; use Gtk2::Gdk::Screen; print qq(All GOOD !!); main Gtk2;
The output message is this: Can't locate Gtk2/Gdk/Screen.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at prueba.pl line 6. BEGIN failed--compilation aborted at prueba.pl line 6. I hope to help me. Thanks.

Replies are listed 'Best First'.
Re: Library SCREEN GTK2
by cjb (Friar) on May 16, 2011 at 16:23 UTC
    Gtk2Fu appears to provide Gtk2::Gdk::Screen. As for which module you need to install in Ubuntu, libgtk2-perl-doc is a documentation module. You probably want to install libgtk2-perl.
        Excellent, after much searching was as simple as what you tell me. This package is available at the time of loading the GTK2 library. Great, thank you very much everybody.
      Looking for information on google, I found that to use the module SCREEN, I need to install the library (libgtk2-perl-doc) but even after that still does not work. The library "libgtk2-perl is already installed.
        It is never going to work. There is no module Gtk2::Gdk::Screen for use to load. See use.
Re: Library SCREEN GTK2
by Anonymous Monk on May 16, 2011 at 15:48 UTC