[erlang-questions] binary strings and interspersing erlang variables
Wes James
comptekki@REDACTED
Fri Mar 9 23:37:03 CET 2012
I'm working with binary data like this:
<<"<html>
<head>
<script>
</script>
</head>
<body>
</body>
</html>">>
I then set
Port= <<"8080">>;
and now to put Port in to the html code above:
<<<<"<html>
<head>
<script>
port='">>/binary,
Port/binary,
<<"';
</script>
</head>
<body>
</body>
</html>">>/binary>>
Is there a better way to do this?
Thanks,
Wes
More information about the erlang-questions
mailing list