in reply to Re^6: BAIL_OUT with older Test::More
in thread BAIL_OUT with older Test::More

Why not wrap it in a sub and document the sub? That way everything will be in one place and you'll have less to type each time you want to bail.

Oh, duh. You know, I'm pretty confident I'd have moved it into a sub from the second time I'd have written that particular line, but it still didn't occur to me immediately. How you guys manage to think that much in advance, I guess I'll never know until I have written much more Perl.

BTW, If you did want to abort, you could probably do print ....; die - the print to force the bail. The die to abort that particular .t file on the spot. Maybe you could even pass a flag to your sub indicating whether you want to die now or not?

We'll see... I can't spend too much time on this either since this is not development time that can be billed to the client. So sad that it's often the case with the most interesting stuff.