[erlang-questions] how to escape ? character

Robert Virding rvirding@REDACTED
Sat May 15 13:30:46 CEST 2010


2010/5/15 Mazen Harake <mazen.harake@REDACTED>:
> One can also use the notation $<chr> which is slightly more comfortable when
> it comes to individual chars.
>
> Try e.g this in the shell:
>
> 1> $?.
> 63
>
> Note however that this is not an Erlang string!
> $? is not a string, [$?] however is.

Or even simpler for a string, "?". They are equivalent "?"  <=>  [$?]
<=>  [63].

Robert


More information about the erlang-questions mailing list