(title) class X::Undeclared
class X::Undeclared does X::Comp
Thrown when the compiler encounters a symbol that has not been declared,
but needs to be.
Variable $x is not declared
Returns the name of the undeclared symbol
Returns the kind of symbol that was not declared (for example variable,
Since The symbol wasn't declared, the compiler sometimes has to guess
(or rather disambiguate) what kind of symbol it encounter that wasn't
declared. For example if you write
Then the disambiguation defaults to reporting a missing subroutine, even
though declaring a constant a = 'a' would also make the error go away.