Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Win32 Perl fail to see the set ENV in loaded module

by kartlee05 (Novice)
on Apr 25, 2014 at 18:15 UTC ( #1083826=note: print w/replies, xml ) Need Help??


in reply to Re: Win32 Perl fail to see the set ENV in loaded module
in thread Win32 Perl fail to see the set ENV in loaded module

I just updated the ticket with the code. 'use' or 'require' seem to be behaving same in this case.
  • Comment on Re^2: Win32 Perl fail to see the set ENV in loaded module

Replies are listed 'Best First'.
Re^3: Win32 Perl fail to see the set ENV in loaded module
by mr_mischief (Monsignor) on Apr 25, 2014 at 19:52 UTC

    I don't have Windows handy to test at the moment. It is my suspicion that the DLL is grabbing the environment from somewhere other than the current process. The module itself should be reflecting the current process's environment since it is part of the current process.The BEGIN block shouldn't even be necessary.

    Since you're working with a specific DLL, you may want to check the programmer's documentation for that DLL.

      Hi, I wrote a c program which load the dynamic library using LoadLibrary(..) call. And before doing that, I try to set the environment variable in the program using putenv(..). The dll very well can see the environment variable. I see this is an issue with perl loading the library and the environment it can use. It would be good if someone can confirm so I can file a bug. -Karthik

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1083826]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-10-16 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (83 votes). Check out past polls.

    Notices?