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; ^
In reply to Re: Re: Re: Simple OO
by dws
in thread Simple OO
by lzcd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |