It sounds like you want Test::Output. Whenever you have a question about how to test something, check the list of Test::* modules. There's probably one that does it for you already.
In reply to Re: How do you Test that the right output got printed?
by brian_d_foy
in thread How do you Test that the right output got printed?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |