<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
If you are trying to print the list, take a look at the options for the <a href="http://erldocs.com/R14B03/stdlib/io.html?i=2&search=io:for#format/1">io:format/1</a> module. If you are going to be performing mathematical calculations on the different items in the list, the Erlang system will automatically treat them as numbers, because that's what they are. The issue you are seeing is due to the fact that there is no string type in Erlang, simply lists of ASCII codes corresponding to the characters and the shell makes the assumption that you have input a string, in this case. It is just a formatting issue, not a change of the underlying structure.<br><br><div>> Date: Mon, 19 Sep 2011 08:33:51 -0700<br>> From: bob@redivi.com<br>> To: amir_fire_2005@yahoo.com<br>> CC: erlang-questions@erlang.org<br>> Subject: Re: [erlang-questions] Lists!!<br>> <br>> These lists are indistinguishable, this is just how the shell displays<br>> lists that could be interpreted as strings. "abc" =:= [97,98.99].<br>> <br>> On Mon, Sep 19, 2011 at 8:32 AM, Amir <amir_fire_2005@yahoo.com> wrote:<br>> ><br>> ><br>> > Hey Everyone,<br>> > Here is the question:<br>> > If you try to enter this on Erlang shell [97,98,99].<br>> > you will get the following answer: "abc"<br>> > But I need the original list to be returned, is there any solution ?<br>> > By the way,<br>> > init:script_id().<br>> > {"OTP  APN 181 01","R14B03"}<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > erlang-questions mailing list<br>> > erlang-questions@erlang.org<br>> > http://erlang.org/mailman/listinfo/erlang-questions<br>> ><br>> ><br>> _______________________________________________<br>> erlang-questions mailing list<br>> erlang-questions@erlang.org<br>> http://erlang.org/mailman/listinfo/erlang-questions<br></div>                                           </div></body>
</html>