perlvel has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am getting a string value from a function .A variable is exist by that string value. Need to print the value using the second variable! Example: my $log_dir="hello"; my $name=function1(); // $name has value "log_dir" I want the output as "hello" using the "name" variable. Is that possible? TIA,

Replies are listed 'Best First'.
Re: Getting Value
by ikegami (Patriarch) on Jul 24, 2009 at 08:57 UTC
      Thanks . It works.
      Svel
Re: Getting Value
by imrags (Monk) on Jul 24, 2009 at 08:59 UTC
Re: Getting Value
by Anonymous Monk on Jul 24, 2009 at 09:03 UTC
      It's a naked hash mark. Avert your eyes!