# 5.36 - isa - Checking if a var is of some class # new way with the 'isa' operator use v5.36; my $obj = bless {}, 'Butterfly'; if ($obj isa Butterfly) { say "Butterfly, butterfly"; }