in reply to Find Index value of a specific element in an array
Is there any shortest and easiest way.
In this specific domain, yes there is:
use Math::Roman; print Math::Roman->new(uc $_)->as_number, "\n" for @roman;
That's maybe not quite what you had in mind, but I throw it in for completeness.
• another intruder with the mooring in the heart of the Perl
|
|---|