Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String delimiting in Erlang

Tags:

string

erlang

Is there an equivalent to Perl's """ in Erlang?

I'd like to be able to define a pretty long string full of double-quotes without escaping every single one. Is that possible?

Feel free to let me know if I'm Doing It Wrong.

Thanks!

like image 630
i-g Avatar asked Oct 09 '09 04:10

i-g


1 Answers

No.

There is basically no other way of doing it. The suggestions presented here work but seem more complex than the straight forward solution, and less clear.

like image 119
rvirding Avatar answered Oct 14 '22 01:10

rvirding