Don't use indirect object syntax. Not only is it buggy, I have personally found myself making other typos when I do that. In this case:
new Test->MockModule('Bar');Should be:
Test::MockModule->new('Bar'); # or if you really like the buggy indirect object syntax: new Test::MockModule 'Bar';
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Test::MockModule question
by Ovid
in thread Test::MockModule question
by thor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |