chrishowe has asked for the wisdom of the Perl Monks concerning the following question:
Where $test is the read variable name and $help is the potentially defined/undefined variable.my $test = "\$help"; my $help = 1; if(defined($$test)){ print "defined\n"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dereferencing simple variable
by lakshmananindia (Chaplain) on Apr 01, 2009 at 12:43 UTC | |
|
Re: Dereferencing simple variable
by akho (Hermit) on Apr 01, 2009 at 13:45 UTC | |
by chrishowe (Acolyte) on Apr 01, 2009 at 14:03 UTC | |
|
Re: Dereferencing simple variable
by targetsmart (Curate) on Apr 01, 2009 at 12:43 UTC | |
by chrishowe (Acolyte) on Apr 01, 2009 at 12:57 UTC | |
by moritz (Cardinal) on Apr 01, 2009 at 13:02 UTC | |
by chrishowe (Acolyte) on Apr 01, 2009 at 14:01 UTC | |
by targetsmart (Curate) on Apr 01, 2009 at 13:13 UTC | |
|
Re: Dereferencing simple variable
by planetscape (Chancellor) on Apr 02, 2009 at 10:53 UTC |