> --(module usr_db)--
> add_usr(#usr{msisdn=PhoneNo, id=CustId} = Usr) ->
This looks like its add_user/1 not 2 or 3, add_user takes a record as
an argument.
In the function definition you are pattern-matching the record, and
defining Phone as the msisdn attribute of the record and CustId as the
id attribute of the record.
While on the function call you are creating a new record with msisdn
as Phone, id as CustId and plan as Plan.
Again only one argument, a record.
Cheers, hope it helps
--
Ale.
Cheers, hope it helps
--
Ale.
--
Erlang Programming Website:
http://www.erlangprogramming.org/