in reply to Re: no strict "refs" and require
in thread no strict "refs" and require
I don't get an error# But if I change these lines in sub getValue from ... # here starts the nightmare # so the provide hash had no key with such name } else { # I FEAR THIS no strict "refs"; # uhm, but it exists, in our namespace ? in our scope? besides +? if (defined $$var){ # if so, then take the value of the skalar $result = $$var; } else { warn "undefined Variable $var requested!"; } } ... #to } else { $result = '$'.$var; $result =~ s/(\$\w+)/$1/eeg; }
|
|---|