#!/usr/bin/perl use v5.14; use warnings; use Test2::V0; use lib "t"; use testcase "t::any"; BEGIN { $^H{"t::any/func"}++ } our $LOG; BEGIN { $LOG = "" }; prefixed func example { BEGIN { $LOG .= "B" } } is( $LOG, "SpSfEpEfBLfLpNpNf", 'stages run in correct order' ); done_testing;