RECENT POSTS

P5-object-enum

May 26, 2018

Replacement for if ($$foo eq ‘bar’)

use ObjectEnum qwEnum;

my $color = Enum[ qwred yellow green ]; # … later if $color->is_red # it can’t be yellow or green

WWW http//search.cpan.org/dist/Object-Enum/