String_to_tuple

Rudolph van Graan rvg@REDACTED
Wed Jul 30 11:52:29 CEST 2003


Hi all,

I have another question today... I was digging through the documentation
yesterday trying to find a function that basically does this:

1. Takes as input a string [eg. "{a,b,c}"] and
2. Outputs a term {a,b,c}

I did quickly look at the erl_parse and erl_scan functions, but didn't
find anything that seems to be able to do this. Basically it is the
reverse of

	io_lib:format("~w",[Term]) 

that I am looking for... I thought there might be a string_to_tuple or
string_to_term function, but no luck for me.

Anyone that knows of a simple way to do this?

Rgds,

R



More information about the erlang-questions mailing list