in reply to [Perl 5.26][Linux LEAP] Array/List/Hash misunderstanding

use experimental 'smartmatch';

Just be aware that smartmatch is pretty much consigned to history now. It's OK(ish) for little one-offs but I would not be basing any new code on it myself.

"It is clear that smartmatch is almost certainly either going to change or go away in the future. Relying on its current behavior is not recommended."


🦛