[erlang-bugs] erl rejects FQN that begin with a digit

Vlad Dumitrescu vladdu55@REDACTED
Wed Oct 20 13:58:56 CEST 2010


On Wed, Oct 20, 2010 at 13:50, Patrick Baggett
<baggett.patrick@REDACTED> wrote:
> It seems Erlang doesn't like domain names that start with digits, in my
> case, the domain "8fun.net"
>
> (host1@REDACTED)5> tut17:start_ping(host2@REDACTED).
> * 1: syntax error before: 8

Hi!

Try enclosing the host name in single quotes, to make it a single atom:

(host1@REDACTED)5> tut17:start_ping('host2@REDACTED').

Otherwise each part delimited by a dot is scanned as an atom, and
atoms can't begin with digits.

best regards,
Vlad


More information about the erlang-bugs mailing list