However if you insist on doing that, you should look into symbolic references (see perlref). They only work with package variables, however (not those created with my). This seems to work:
my $test = "help"; our $help = 1; no strict 'refs'; if(defined($$test)){ print "defined\n"; };
In reply to Re: Dereferencing simple variable
by akho
in thread Dereferencing simple variable
by chrishowe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |