hello.jl defines the hello() function, but you need to call it to get some 
output. For instance,

function hello()
       println("Hello World")
 return
end

hello()
hello()

will print "Hello World" twice.

On Monday, May 9, 2016 at 10:59:05 PM UTC-4, [email protected] wrote:
>
> Newbie question: Why don't I get any output from the following programs 
> when I run them from the command line on my Macbook pro (OS 10.11.4) or two 
> different versions of Linux. Everything works as expected when the programs 
> are run in the REPL. 
>
> On the Mac I use the following in my PATH. 
>
> /Applications/Julia-0.4.5.app/Contents/Resources/julia/bin
>
> Command line: julia hello.jl
> function hello()
> println("Hello World")
> return
> end
>
> Command line: julia five.jl
> function five()
> return 5
> end
>
> The scripts run fine with no apparent errors or warnings. They just don't 
> produce any output. 
>
> Thanks,
> Rich
>

Reply via email to