Re: Glib::Flags overloaded mutators



Torsten Schoenfeld <kaffeetisch gmx de> writes:

Is there something else I missed?

I got a warning from the program below

    Use of uninitialized value in null operation at foo.pl line 13.

Maybe it only needs to watch for undef in the swap arg.

use strict;
use warnings;
use Data::Dumper;
use Gtk2 '-init';

my $w = Gtk2::Window->new ('toplevel');
my $f = $w->flags;
print Dumper($f);
print "\n";

print $f,"\n";

$f += 'can-focus';

print $f,"\n";

exit 0;


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