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.
In reply to Re: Re: A Bad Day to OOP :(
by chromatic
in thread A Bad Day to OOP :(
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |