I got frustrated a little bit with my problem. I feel totally stuck as well so I hope to find some help here...
Here is my problem: I am using Win32::GUI module to create custom log viewer. This is great as finally I can have functionality all available viewers don't: I want to load a huge log file in the main window and then reload it in other window but filtered with regular expression entered in the main window. The new window is created in the following manner:
$WindowCount is the global counter which increases everytime new window is created. I need to have many windows opened! Each of them has editbox (for regexp text).${"Window".$WindowCount} = new Win32::GUI::Window ( -name => "Window$WindowCount", -title => "RegExp$WindowCount", -pos => [100, 100], -size => [400, 400], -onTerminate => \&Buffer_OnQuit ) or die "new Window"; ${"Window".$WindowCount}->AddTextfield( -name => "RegExp", -pos => [10, 0], -size => [300, 21], -keepselection => 1 , -prompt => [ "RegExp Filter : ", 75] );
nor like this:$counter = 1; $var = ${"Window".$counter}->RegExp->Text
I get an error: "Can't call method "RegExp" on an undefined value..." Can someone explain it to me?$var = ${"Window"."1"}->RegExp->Text
In reply to win32 perl module usage problem by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |