Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is MyApp? What does "use base" do?

Status
Not open for further replies.

leegold2

Technical User
Oct 10, 2004
116
0
0
Hi,

I've been searching for answers.

From a wxPerl program:

use Wx;
package MyApp;
use base 'Wx::App';


What is difference between a module and a package?

What exactly is MyApp? It's a package but I can't find any documentation on it.

Tried to find info in "use base" but no simple explainations. What does "use base" do?

Thanks
 
There is no difference between a module and package normally, except you can define more than 1 package in a module file (.pm).

MyApp is just the name of your programs namespace or package.

use base creates a parent-child relationship between the two objects. Read about Inheritance at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top