in reply to Re: Re: no strict "refs" and require
in thread no strict "refs" and require

The faq covers three different approaches. The first only works with globals and is not strict compliant. The second works with lexicals or globals and is strict compliant. The third shows how one could accomplish a similiar task using hash keys instead of variable names. I'd recommend either of the last two.

-Blake

  • Comment on Re: Re: Re: no strict "refs" and require

Replies are listed 'Best First'.
Re: Re: Re: Re: no strict "refs" and require
by little (Curate) on Feb 13, 2002 at 00:45 UTC
    safe as described in the faq

    $line =~ s/\$(\w+)/${getValue(\%myVars,\$1);}/sgex;

    but how do I get the defined skalars from the required script into my hash? that would be a way that I would prefer

    Have a nice day
    All decision is left to your taste