my $isInst = $self->can('isInst'); for my $var (@something) { $isInst->($self,$var); };