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
In reply to Re: Find Index value of a specific element in an array
by grinder
in thread Find Index value of a specific element in an array
by l.frankline
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |