Yes, I'm happy with it too. No need for perl 5 error message here (also,
please, let's have less perl 5 error messages).

testneeded.

Also, here's how the error message was changing over time:
https://gist.github.com/Whateverable/2373e732b2c3c10f643fa8eb5c5470a7

On 2016-07-07 06:52:35, coke wrote:
> On Fri May 29 07:28:12 2015, r...@hoelz.ro wrote:
> > For example:
> >
> > > my @array = 1, 2, 3;
> > > my %hash = :foo(1), :bar(2);
> > >
> > > say $array[0]; # Variable '$array' is not declared. Did you mean
> > > any
> > > of these?
> > >
> > > say $hash{'foo'}; # Variable '$hash' is not declared. Did you mean
> > > any of these?
> > >
> > > say $hash<foo>; # Variable '$hash' is not declared. Did you mean
> > > any
> > > of these?
> >
> > Granted, these error messages could be worse, but I think a "hey, I
> > see you're used to Perl 5"-style message could be useful.
>
> I'm happy enough with the message pointing to the correct variable
> name here:
>
> Variable '$array' is not declared. Did you mean any of these?
> @array
> Array
> array

Reply via email to