local_onExit is how it is now http://davidnicol.diaryland.com/onExit.html The semantics should be exactly the same as Scope::OnExit, but the syntax is somewhat convoluted, abusing the C<local> mechanism as it does.
Scope::OnExit::PurePerl would seem to imply the same syntax, which would be misleading. -- question doubt