Ben (>):
>  I've just received an error message saying:
>
>  elseif should be elsif at blah.pl line 103.
>
>
>
>  What happened to do-what-I-mean?
>
>
>
>  Perl is usually pretty forgiving.  In this case, it knows that I should
>  have typed elsif, so why does it care that I typed elseif?  Why not just
>  treat it as if I'd typed elsif?

I'm not sure laxity among keywords would really be a feature.
Correctly spelled, it's "elsif" in Perl, so why allow misspellings?

Allowing "elseif" would constitute having two reserved words pulling
the weight of one. Similarly allowing "whlie", "wehn" and "ulness"
just because it reduces compilation errors, is a bad idea.

// Carl

Reply via email to