http://qs321.pair.com?node_id=776340


in reply to Scalar variable value is name of a scalar variable

I tried using symbolic references and it seems to work.

Had to alter the logic a bit too.Is this implementation correct? I have read a few articles which advocate against using symbolic references.

my $lev = "INFO"; $logger->level($$lev); # DEBUG,INFO,WARN,ERROR,FATAL