Can I search variable name as a regex in perl? and not its value. something like below algo
$var = 0;
$pattern = "abc";
if($i = var) #here I want to check if "pattern" is "var" or not. and dont want to compare actual values of them like "0" and "abc".
then
do something
endif
Can anybody please help?