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


-- 
Will "Coke" Coleda

Reply via email to