and I simply do not understand the constructif ($type eq 'bitmap') { my $bg = ($c->itemconfigure(qw/current -background/))[4]; if (defined $bg) { $iinfo->{restore_cmd} = "\$c->itemconfigure('current', -background => '$bg');"; } else { $iinfo->{restore_cmd} = "\$c->itemconfigure('current', -background => undef);"; } $c->itemconfigure(qw/current -background SteelBlue2/); return; }
What is 4?? I thought itemconfigure was used to set a property but seemingly it is being used here to retrieve a value? Thanks for the wisdommy $bg = ($c->itemconfigure(qw/current -background/))[4];
In reply to Strange construct by dlal66
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |