in reply to Re^6: Smartmatch alternatives
in thread Smartmatch alternatives
These look fine to me. IIRC, older versions of List::Util included a non-XS implementation of first; current versions of List::MoreUtils include a non-XS version of any. So pure Perl versions can probably be pilfered from them too.
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Smartmatch alternatives
by LanX (Saint) on Dec 18, 2013 at 02:19 UTC | |
by tobyink (Canon) on Dec 18, 2013 at 07:34 UTC | |
by LanX (Saint) on Dec 18, 2013 at 08:15 UTC |
In Section
Seekers of Perl Wisdom