hello ToddAndMargo, > Can I declare a subroutine as a variable?
just use the callable sigil (https://docs.perl6.org/type/Callable). those are 3 ways to write the same sub: sub foo ($x) { $x * $x } my &foo = -> $x { $x * $x } my &foo = * * *; regards, marc