dirty mnesia function

Chandrashekhar Mullaparthi Chandrashekhar.Mullaparthi@REDACTED
Tue Sep 24 09:13:59 CEST 2002

~w doesn't print strings as strings. It prints them as a list of integers. 

io:format("~100.p~n", [RecordList]).

works well. 


-----Original Message-----
From: Sebastian Strollo [mailto:sstrollo@REDACTED]

Francesco Cesarini <francesco@REDACTED> writes:

> Try binding your result to a variable and print it out. For example
>  > RecordList = mnesia:dirty_match_object(piuTable,
> {piuTable,'_','_','_','_','_','_','_','_','_','_','_','_','_'}).
>  > io:format("~p~n",[RecordList]).

I think ~p is actually what is doing the "pretty printing" including
adding |... when the data is too deep (see io_lib:print). If you want
to print a term completely use ~w.



This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.

More information about the erlang-questions mailing list