Dear all, I ran into a strange behaviour with Glib::Object::Subclass . If I call set_property using a value stored in a tied hash, the corresponding get_property returns undef. This doesn't happen if scalar context is forced when calling set_property. Please, see the attached test case. If $hashref is a tied hash reference (of course the 'Title'key is defined): $w->set_property('title', $hashref->{Title}); then this returns undef: $w->set_property('title', $hashref->{Title}); Whereas the following block returns a defined value: $w->set_property('title', scalar($hashref->{Title})); $w->set_property('title', $hashref->{Title}); Does anyone know why this happens? thanks for your help, ciao, -- Giuliano #!/usr/bin/perl $i=$j=$r=$b=-16.0;while((print"\n"),$b++<15){foreach$a(0..78){print +(split //,' .:-;!/>)|&IH%*#')[$k&15];for($i=$k=$r=0;$j=$r*$r-$i*$i -2+$a/25,$i=2*$r*$i+$b/10,$j*$j+$i*$i<11&&$k++<111;$r=$j){}}}
Attachment:
tieprop.pl
Description: Text Data