Re: [perl-win32-gui-users] -onEvent weirdness for "on-the-fly" created Buttons

2006-01-12 Thread Steve Loughran
Sanity is returning. I assigned the $configdata to "my $name" and used that in the correct places, and all is right with the world again. Many thanks for that... I was slowly going mad. Nice to see that I was at least right about what I thought was going on, even if I had no idea why :) Stev

RE: [perl-win32-gui-users] -onEvent weirdness for "on-the-fly" created Buttons

2006-01-12 Thread Jeremy White
Its like "$configdata(name}" is being expanded/substituted when I actually press the button (using the last $configdata{name} value from the button creation stage), rather than the parameter being expanded/substituted and stored when i create the button. If I undef the %configdata, nothing is b

[perl-win32-gui-users] -onEvent weirdness for "on-the-fly" created Buttons

2006-01-12 Thread Steve Loughran
Hi all I am progressing with my project quickly, but have hit a problem that I cant seem to work out. I am reading in a text file, and creating several buttons on the fly. This is a very simplistic version of the code: == $win->AddButton( -name => $configdata{na