Aspect...::True(3pm)

πŸ“¦
version 1.04 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Aspect...::True(3pm) πŸ’–

okay so bestie, welcome to the manual page for Aspect::Pointcut::True, straight out of the User Contributed Perl Documentation collection. it's giving pointcut energy, it's giving runtime magic, and honestly? it ate. πŸŽ€


✨ NAME ✨

Aspect::Pointcut::True β€” a pointcut that lets you run arbitrary Perl code. no cap, that's literally the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

  use Aspect;

  # High-level creation
  my $pointcut1 = true { rand() > 0.5 };

  # Manual creation
  my $pointcut2 = Aspect::Pointcut::True->new(
    sub { rand() > 0.5 }
  );

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: Aspect's weaving phase technically happens at run-time β€” like, relative to the whole overall process β€” which means it does NOT have to limit itself to only conditions that are fully describable at compile-time. it's free. it's unbothered. πŸ‘‘

Aspect::Pointcut::True lets you ride that wave and cook up your own custom run-time pointcut conditions. custom conditions, bestie, exactly how you like them. ✨

but listen β€” for safety and purity reasons you are NOT permitted to create custom conditions that interact with the Aspect::Point object for the call. that's a hard no, and we respect the boundary. πŸ™ˆ

πŸ‘‘ AUTHORS πŸ‘‘

the icons who made this happen, periodt:

  • Adam Kennedy <adamk@cpan.org>
  • Marcel GrΓΌnauer <marcel@cpan.org>
  • Ran Eilam <eilara@cpan.org>

  • Copyright 2001 by Marcel GrΓΌnauer
  • Some parts 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. 🫢


perl v5.36.0 Β· 2023-07-02 β€” mwah, that's the version and the date, and that's a wrap bestie! stay slaying, stay weaving, and remember: runtime pointcuts are your main character era. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from