Aspect...turning(3pm)
β¨ NAME β¨
Aspect::Pointcut::Returning β the pointcut that catches a function returning without exception π (yes bestie, the manual page is literally called Aspect...turning(3pm) and no, the truncation is not me being dramatic, it's just how the file name got squished)
Like, here's the vibe:
use Aspect;
# Don't trap Foo::Exception object exceptions
after {
$_->return_value(1)
} call 'Foo::bar' & returning;
π¦ DESCRIPTION π¦
okay so listen π«Ά β the Aspect::Pointcut::Returning pointcut is the one you reach for when you need to match the situations where your after advice should NOT run because the function is out here throwing an exception. π
That's it. That's the whole job. It's giving very niche, very specific, very slay. If the sub is mid-throw, your after block stays in its lane and does not fire. Periodt. π
π AUTHORS π
- Adam Kennedy
<adamk@cpan.org>β the icon who wrote it, no cap β¨
π COPYRIGHT π
Copyright 2009 - 2013 Adam Kennedy.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πΈ (fr fr, same terms as Perl, go wild)
okay that's the whole page bestie, go write someafteradvice and remember:returning= no exception energy, iykyk πβ¨
perl v5.36.0 Β· 2023-07-02 Β· that's the Aspect...turning(3pm) source line and date, mwah, bye ππ¦π
π¦ where this page comes from
- debian trixie: libaspect-perl 1.04-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libaspect-perl 1.04-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libaspect-perl 1.04-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libaspect-perl 1.04-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms