the newline _character_?

Nico Weling <>
Thu Nov 21 11:07:32 CET 2002


Hi Bengt,

the character is '\n'

This works fine:

Eshell V4.9.1  (abort with ^G)
1> $\n.
10

> moreover, is there is_whitespace() function is some module?

you can use:

   case YourCharacter is 
   	[32] -> bla bla bla;



Regards,

Nico.

 	
> Date: Thu, 21 Nov 2002 10:55:53 +0100 (MET)
> From: Bengt Kleberg <>
> Subject: the newline _character_?
> To: 
> MIME-Version: 1.0
> Content-MD5: 7Pv+Qu1QOecVnPanJNFYxQ==
> 
> greetings,
> 
> characters in erlang are written as $<the-character>. ie ';' is $; .
> how do i write newline? not in a string, that would be "\n", but as a
> character?
> 
> moreover, is there is_whitespace() function is some module?
> 
> 
> bengt
> 

__________________________________
Nico Weling
System Designer
Ericsson Eurolab Deutschland GmbH
Verification Tool Design

Tel: +49 2407 575 5217
Fax: +49 2407 575 651
Dect:+49 2407 575 89339
mailto:
__________________________________




More information about the erlang-questions mailing list