you need a : where you have a .
On Fri, Sep 24, 2010 at 7:48 PM, chongqing xiao <cqx...@gmail.com> wrote: > Hi, > > I was learning erlang and couchdb using the erl and I got the > following error when I tried to use couch_file in erl shell. > Could someone explain what might be the problem? I am guessing > couch_file is not the actual module but I can't figure out how to get > that. > > Eshell V5.8.1 (abort with ^G) > 1> c("c:/couchdb/src/couchdb/couch_file", [{outdir, > "c:/couchdb/src/couchdb/"}]). > {ok,couch_file} > 2> couch_file.open("c:/test"). > ** exception error: bad function 'couch_file.open' > > Thanks > Chong >