Hi, you are using function 
input()

, but this function is not known for julia. You can use function 
readline(STDIN)

instead of input(), or you can insert 
function input() 
  readline(STDIN) 
end
to the first line of your file.

Have a nice day with Julia ;)


Dňa pondelok, 8. augusta 2016 15:58:49 UTC+2 Rishabh Raghunath napísal(-a):
>
> Thanks for replying
> I've attached the file with this reply..
> It works in Juno.. but not via the terminal and get the before said error
>
> On Monday, August 8, 2016 at 2:39:07 AM UTC+5:30, Rishabh Raghunath wrote:
>>
>>
>>
>> Hello,
>> I am a beginner in the Julia language .. 
>> I get this error while I try to run ****.jl Julia program file from the 
>> terminal. However It works perfectly fine in the Juno IDE. This following 
>> is the error message I receive while trying to run the program from the 
>> Linux terminal:
>>
>>
>> ERROR: LoadError: UndefVarError: input not defined
>> in legacy at /home/rishabh/Desktop/ProjectJulia/juliatest.jl:120
>> while loading /home/rishabh/Desktop/ProjectJulia/juliatest.jl, in 
>> expression starting on line 138
>>
>> How do I resolve this and run .jl file in the terminal rather than in 
>> Juno ?
>> Thanks In advance
>>
>

Reply via email to