On Fri, Feb 11, 2005 at 07:30:24AM -0500, David Golden wrote:stdout_is { fcn() } $string, "comment"; # exact stdout_like { fcn() } qr/regex/, "comment"; # regex match stdout_count { fcn() } qr/regex/, $count, "comment"; # number of matches stdout_found { fcn() } qr/regex/, [EMAIL PROTECTED], "comment"; # list of matches
The trouble with this interface is sometimes you want to collect a bunch of output from a bunch of different functions together.
That's why I suggested that it be prototyped to take a code block:
stdout_is { fcn1(); # more processing fcn2(); } $expected, "comment";
David