hi,
I would like to use other files in my main file.
- What do I have to write in the other files? (All use::* ?)(this may be stupid question ...)
- Do I have to redefine all global variables?
I wrote:
####Main file, I introduced with:
require "MyFile2.pl";
####MyFile2:
One fonction that calls for a toplevel creation from my main window(argument of the fonction)...
sub func{
my $mw = @_;
$sw = $mw->Toplevel;
}
return 1;
The error tells me that i cannot create a toplevel without an object reference...
Thanks for help,
Julie
I would like to use other files in my main file.
- What do I have to write in the other files? (All use::* ?)(this may be stupid question ...)
- Do I have to redefine all global variables?
I wrote:
####Main file, I introduced with:
require "MyFile2.pl";
####MyFile2:
One fonction that calls for a toplevel creation from my main window(argument of the fonction)...
sub func{
my $mw = @_;
$sw = $mw->Toplevel;
}
return 1;
The error tells me that i cannot create a toplevel without an object reference...
Thanks for help,
Julie