Elixir beginner here. I am attempting to run a hello world elixir script from the iex
The script is a basic hello world example
IO.puts "Hello World!"
I run the following command from iex
iex(1)> elixir hello.exs
and get this error:
** (CompileError) iex:1: undefined function elixir/1
Not sure why I am getting an error, any help would be appreciated. Thanks
Just so the answer is not buried in a comment:
You should run
elixir hello.exs
from the shell, not insideiex
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With