Re: use Glib qw(TRUE FALSE)



I guess it was related to some kinda version mismatch. I just re-installed Gtk2 and Glib following
the instructions given by Martin and muppet
(http://mail.gnome.org/archives/gtk-perl-list/2005-January/msg00055.html) and things work
fantastic now.

Thanks,

_Ofey.

--- ofey aikon <ofey_aikon yahoo com> wrote:

In all the example files, I am unable to use the Glib constants on my windows installation. Any
suggestions on what I should be looking for ?

C:\Temp>perl -e "use Glib qw(TRUE FALSE)"
Argument "TRUE" isn't numeric in subroutine entry at C:/Perl/site/lib/Glib.pm line 39.
Argument "FALSE" isn't numeric in subroutine entry at C:/Perl/site/lib/Glib.pm line 39.

I can get scripts running by replacing the 'use Glib qw(TRUE FALSE)' with

use constant TRUE => 1;
use constant FALSE => !TRUE;

Thanks,

_Ofey.


              
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list



=====
_Ofey


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]