Try:
print +(v('I')+1)*26 + v('V'), "\n";
Enable warnings and you'll get:
[0] Perl> print (v('I')+1)*26 + v('V'), "\n";; print (...) interpreted as function at (eval 3) line 1, <STDIN> line 1 +.
In reply to Re: Converting "IV" from base 26
by BrowserUk
in thread Converting "IV" from base 26
by pc88mxer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |