If I understand correctly and die raises an exception in Perl, then error() is the equivalent in Julia. `break` can only be used inside a loop, for instance when a condition is met:
while true cond && break end On Monday, November 7, 2016 at 11:21:14 AM UTC+1, Fred wrote: > > Hi, > > I search in Julia the equivalent of Perl > die; > to stop the execution of a program. > > I tried "break" but it produces an error : > ERROR: LoadError: syntax: break or continue outside loop > I did not found "stop" as well. > > Thanks ! >