Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32 perl module usage problem
by roboticus (Chancellor) on Jan 08, 2010 at 13:34 UTC | |
|
Re: win32 perl module usage problem
by Anonymous Monk on Jan 08, 2010 at 11:21 UTC | |
by BrowserUk (Patriarch) on Jan 08, 2010 at 11:53 UTC | |
by Anonymous Monk on Jan 08, 2010 at 12:23 UTC | |
by BrowserUk (Patriarch) on Jan 08, 2010 at 12:40 UTC | |
by Anonymous Monk on Jan 08, 2010 at 13:28 UTC |