Re: [perl #131877] better error message for exit("hello")

2017-08-10 Thread Joachim Durchholz
Would it be possible to special case when someone passes a string to exit and give a better error message telling how to write that? Maybe the error message should indicate what types are allowed. Better yet, could exit accept a string? That would be equivalent to `print("hello");exit(0)`.

Re: [perl #131877] better error message for exit("hello")

2017-08-10 Thread Joachim Durchholz via RT
> Would it be possible to special case when someone passes a string to > exit and give a better error message telling how to write that? Maybe the error message should indicate what types are allowed. > Better yet, could exit accept a string? That would be equivalent to