Thrown when a symbol (variable, routine, type, parameter, ...) is redeclared. Note that redeclarations are generally fine in an inner scope, but if the redeclaration appears in the same scope as the original declaration, it usually indicates an error and is treated as one.
my ; my ;
===SORRY!===Redeclaration of symbol
It works with routines too:
sub f()sub f()
===SORRY!===Redeclaration of routine f
But those are fine
my ;sub f()
Returns the name of the symbol that was redeclared.
Returns the kind of symbol that was redeclared. Usually
symbol, but can also be
Returns a string that is attached to the end of the error message. It usually explains the particular problem in more detail, or suggests way to fix the problem.