[rabbitmq-discuss] erlang program init get_argument problem

PONMUTHU M ponmuthu at omnesysindia.com
Fri Feb 21 09:48:33 GMT 2014


hi all,

      while get runtime command prompt variable via init:get_argument(name).


    i want to get a list . but in that " " are added while getting & assign
to a varaible


% erl -mylist [1,2,3,4]

> {ok,[[List|_]|_]} = init:get_argument(mylist).
{ok,[["[1,2,3,4]"]]}
>List.
"[1,2,3,4]"



put expecting O/p as 

>List.
[1,2,3,4]


please help , because of this double qutoes am not able to do Head & Tail .







-----
-- PONMUTHU M --
--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/erlang-program-init-get-argument-problem-tp33553.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list