[erlang-questions] subnet masking with binary matching

Claes Wikstrom <>
Thu Jan 18 22:41:37 CET 2007

Bob Ippolito wrote:
> There's plenty of documentation for all of Erlang's pattern matching
> features in the reference manual.

A good solution is also to represent IP addresses as
integers. I've found it easier to manipulate IPs as integers
than 4/8 tuples or binaries.
On ints we can do many bit-twiddler operations that are otherwise


More information about the erlang-questions mailing list