in reply to Re: A Bad Day to OOP :(
in thread A Bad Day to OOP :(
You want 1; all by itself.
return 1; is clunky, but it works. return 0; doesn't. return 'false'; does.
Also, maybe you should use Fruit::Apple; and not just use Fruit;
There's nothing to import from Fruit::Apple, and the filename is Fruit.pm. The two commingled steps of require and import() make things a little confusing at times, but pure OO modules are free to do some really funky things.
|
|---|