You need an eval, otherwise your concatenated '&Mysimple_mod::bogus' is
just a string, not a function.
ok ( defined( eval $val.'::bogus' ) , "#6 bogus subroutine");
Update: sorry, spoke too soon. The problem with the eval is that it would actually call the routine... See zwon's reply for a working solution.
In reply to Re: Concatenate strings before Test::More::ok
by almut
in thread Concatenate strings before Test::More::ok
by gctaylor1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |