in reply to Accessing variables in a runtime-loaded module

Hi, I am beginner in perl. To my knowledge we have to create an object before to invoke a subroutine for that package.

For Example:

my $module_name = sprintf "Win32::".$ARGV[0]; eval "require $module_name"; die if $@; $module_name->import(); $W1 = new Win32::GUI::Window(-name => "W1",-title => "Main Window",-s +ize => [ 300, 200 ],); $W1->Show(); Win32::GUI::Dialog(); sub W1_Terminate { return -1; }

I don’t have much idea about Plugin, so, I tried this example in GUI.

Regards,

Samy_rio

Replies are listed 'Best First'.
Re^2: Accessing variables in a runtime-loaded module
by srd (Initiate) on Jun 09, 2005 at 18:29 UTC
    Well, my question is aiming at package variables, not subroutines. Subroutines aren't that hard. Variables are syntactically tricky, subroutines relatively easy.