in reply to how to dynamically declare a varialble?

As others have advised, use strict doesn't allow symbolic references. Per good coding practices, symbolic references are generally ill-advised as they can lead to various kinds of problems that use strict is meant to avoid in the first place.

That said, there might be legitimate occassions where you might want use strict and still want some symbolic references. You can do that like so --

use strict; no strict 'refs';

Good luck.