i have a problem to use Glib::g_locale_to_utf8



hi:
nice for meet all in this mailist,i'm a newbie to use gtk2-perl
binding(and perl),so when i call this fuction in my script like this
#!/usr/bin/perl

use Glib;
$re=Glib::g_locale_to_utf8 "xxxx"; #some utf8 string in the args.
print $re;
i got the error messages like this

String found where operator expected at new.pl line 7, near
"Glib::g_locale_to_utf8 "xxxx""
(Do you need to predeclare Glib::g_locale_to_utf8?)
syntax error at new.pl line 7, near "Glib::g_locale_to_utf8 "xxxx""
Execution of new.pl aborted due to compilation errors.
how can i call this fucntion in my script?




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