Re: Gtk2-perl shell (problem with GLib-GObject)



* muppet <scott asofyet org> [2005-01-18 14:35]:
Redefining methods in perl works fine (you can do it trivially
when using gws), although i'm not sure there's a way to disable
the "subroutine foo redefined at line xx" warning (perhaps
turning off strict?  i can't remember).

Put

    no warnings 'redefine';
or
    local $^W;

in the block which redefines the sub, depending on how old your
Perl is.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}
&Just->another->Perl->hacker;



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