in reply to Re^2: Poll: Is your $^X an absolute path? (argv[0])
in thread Poll: Is your $^X an absolute path?
Win32 Perl has always had GetModulePathName()At least my cursory grep didn't find that function in the perl source
Sorry, my transcription error (s/Path/File/):
perllib.c:171: GetModuleFileName(NULL, szModuleName, sizeof(szModul +eName)); win32.c:135: GetModuleFileName((HMODULE)((w32_perldll_handle == INV +ALID_HANDLE_VALUE) win32.c:136: ? GetModuleHandle(NULL)
It looks like it's just getting the name from whatever the compiler sets up as argv[0].
No, Win32 Perl has never figured out $^X based on argv[0] (except before it was released). The function called is os2_execname(aTHX) (yes, Win32 is consider OS/2-ish).
- tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Poll: Is your $^X an absolute path? (argv[0])
by xdg (Monsignor) on Aug 18, 2006 at 11:57 UTC | |
by tye (Sage) on Aug 18, 2006 at 12:19 UTC | |
by xdg (Monsignor) on Aug 18, 2006 at 13:55 UTC | |
by tye (Sage) on Aug 18, 2006 at 14:27 UTC | |
by xdg (Monsignor) on Aug 18, 2006 at 14:51 UTC | |
|
In Section
Meditations