is it possible to detect the "declared type" of a variable at runtime?
{package Foo } my Foo $x; print type_of($x) # should print Foo
I read fields, but I couldn't find any practical way to achieve this.
Cheers Rolf
In reply to Detecting declaration type? by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |