in reply to Re: Re: Simple OO
in thread Simple OO
Without the use statement I get:The reason for this error message is a bit more obscure. (It has to do with something called "indirect object syntax".) However, the error goes away if turn the bareword wolf into the scalar $wolf.No such class wolf at demo.pl line 22, near "my wolf" syntax error at demo.pl line 22, near "my wolf="
I suspect this is what you had in mind.my $wolf=new sheep; ^
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Simple OO
by lzcd (Pilgrim) on Feb 12, 2002 at 07:17 UTC | |
by dws (Chancellor) on Feb 12, 2002 at 07:24 UTC |