Randomly moving logic into BEGIN blocks
Well, its not random: I just set a variable, and nothing wrong with that, except...
That code will give a plan of 1 test when you probably wanted 11.
...the my variable gotcha, where $c is not visible in the BEGIN block. Thanks, corrected.
In reply to Re^3: RFC: Another test module - Test::NoPlan
by shmem
in thread RFC: Another test module - Test::NoPlan
by duncs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |