Hi there,
I am seeking for the wisdom of yours to help me out with this.
I would like to pass a blessed object to MyApp ( the scenario is as in the
tutorial: http://wxperl.sourceforge.net/tutorial/tutorial3.html ).
In 'main' I try to say
my $app=myApp-new($obj)
Unfortunately, if I try this:
sub
Laslo Forro getfo...@gmail.com writes:
my $app=myApp-new($obj)
So you pass an object arg to your derived class.
sub new {
my ($ref,$obj)=...@_;
This is the constructor os your derived class.
my $self=$ref-SUPER::new($obj);
Here you pass the object to the super class constructor.