Front page | perl.perl5.porters |
Postings from May 2003
COW bug?
Thread Next
From:
Slaven Rezic
Date:
May 15, 2003 14:06
Subject:
COW bug?
Message ID:
200305152104.h4FL4G33026398@vran.herceg.de
This seems to be a COPY_ON_WRITE bug. I can only reproduce this with
the magic -textvariable option of Tk. Without COPY_ON_WRITE, the other
Entry gets updated if one types in the first one. With COPY_ON_WRITE,
the other Entry does not get updated. The following things seem also
to be crucial:
* the assignement to $1
* the double assignement of $old_mapscale and $new_mapscale
use Tk;
$top = new MainWindow;
$mapscale = "1:10000";
$mapscale =~ /:\s*(\d+)/;
$old_mapscale = $new_mapscale = $1;
$top->Entry(-textvariable => \$new_mapscale)->pack;
$top->Entry(-textvariable => \$new_mapscale)->pack;
MainLoop;
__END__
Regards,
Slaven
--
Slaven Rezic - slaven@rezic.de
Berlin Perl Mongers - http://berliner.pm.org
Thread Next