in reply to "my" variable masks earlier declaration in same scope
Has anyone encountered this before?
If so, where am I going wrong?
Easily answered using a search engine,
like
this
or
this
Since you're new, you should add
use diagnostic;
to your program, so you'll get more detailed explanation, like
"%s" variable %s masks earlier declaration in same %s
|
|---|