Hey all,
This is probably something very basic, but my Erlang installation is doggedly rejecting my calls to the re
module with error:undef
s. It accepts the regexp
package, however, so I'm thinking its a version issue.
I'm running v. 5.6.2, and -import(re, [...]).
at the top of my file, are there any other gotchas I may be missing? I searched for a fair bit of time, but couldn't find a page describing the minimum version needed.
On a related note, since I'm still pretty fresh to Erlang and its tools/community/dev environments, if you have any suggestions for sites to visit frequently, or tools that changed your dev cycle, please let me know.
Thanks!
EDIT: If you want to see some code:
Erlang (BEAM) emulator version 5.6.2 [source] [smp:2] [async-threads:0] [kernel-poll:false]
Eshell V5.6.2 (abort with ^G)
1> re:compile("paul").
** exception error: undefined function re:compile/1
2> regexp:match("paul","au").
{match,2,2}
And in my Eunit test:
::error:undef
in function re:compile/1
called as compile("\\s+")