Names to numbers: Difference between revisions

m
(Install J initial solution)
Line 112:
=={{header|J}}==
Define the verb usinv to convert number names to numbers.
File number_names.ijs contains the code of [[http://rosettacode.org/wiki/Number_names#J|number names project]].
<lang J>
NB. standard profile defines tolower and delete extra blanks.
Line 139:
1
</pre>
 
=={{header|Perl}}==
The following code reads a file line-by-line. It echos comment lines starting with a hashmark and blank lines. Remaining lines are output followed by an arrow "=>" and any non-negative integer number names translated into numbers, e.g., a line with "ninety-nine" is output like this: "ninety-nine => 99".
Anonymous user