Just another Perl shrine | |
PerlMonks |
Re: IO::Socket::Socks::Wrapper - settings from variablesby kcott (Archbishop) |
on Apr 29, 2015 at 02:43 UTC ( [id://1125081]=note: print w/replies, xml ) | Need Help?? |
G'day JimSi, use loads modules at compile time. For your variable to work as expected, it would need to initialised also at compile time and prior to calling use. You haven't shown the code that failed. Is it something like this (I'm just using the BEGIN block to emulate your use statement):
Producing output like:
Here's how you could fix that:
Which now outputs the wanted value:
That may lead you to a solution. If it doesn't, please post the actual code that is failing as well as all output you receive. Guidelines for what information to post with your question can be found at: How do I post a question effectively?. -- Ken
In Section
Seekers of Perl Wisdom
|
|