in reply to TK Gui Help
Concerning the error: In your addwidget routine you're declaring my $f1, creating a new variable named $f1 which is local to addwidget and which hides the global $f1 you declared at the start of your program. The $f1 you're accessing in genchart is the global one, which is still undef at that point, causing the error. Try removing the my from $f1 inside addwidget.
|
|---|