command-line args in erl

Wes James <>
Thu Apr 15 23:41:36 CEST 2010


On Thu, Apr 15, 2010 at 3:25 PM, Wes James <> wrote:

<snip>

>
> and this code:
>
> main(WArg,HArg) ->
>  W = WArg, %list_to_integer(atom_to_list(WArg)),
>  H = HArg, %list_to_integer(atom_to_list(HArg)),

hmm, interesting.

erl....

A='200'
'200'
B=atom_to_list(A).
"200"
C=list_to_integer(B).
100

atom is in single quote and list is in double quote??

-wes


More information about the erlang-questions mailing list