By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,933 Members | 1,676 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,933 IT Pros & Developers. It's quick & easy.

Perl script compiling

P: 3
I have installed Active Perl and PerlIdE on my computer to use perl in Windows. When I compile a code ( using F8 key) a built-in script activates with an error on this line:
my $result = Win32::GetFullPathName($filename);

can anybody tell me what does this message say and how I can fix it.

Thanks a lot
Jul 7 '10 #1
Share this Question
Share on Google+
6 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
That is pretty vague, can you please post your full error output here? Also, please post your code.

Regards,

Jeff
Jul 7 '10 #2

P: 3
Thanks Jeff, here is the error that I get on the Perlide consol. Also, it has nothing to do with the code. I get this error on all codes even very simple one-line codes.
Cheers,
Mahmood

Win32 does not define $Win32::VERSION--version check failed at ..\perlIDE\OPen_Perl_IDE_1.0.11.409/perl5db.pl line 435.
BEGIN failed--compilation aborted.
Compilation failed in require at C:/Perl/lib/Win32.pm line 8.
BEGIN failed--compilation aborted at C:/Perl/lib/Win32.pm line 80.
Compilation failed in require at ..\perlIDE\OPen_Perl_IDE_1.0.11.409/perl5db.pl line 435.
BEGIN failed--compilation aborted.
Compilation failed in require.
BEGIN failed--compilation aborted.
Jul 8 '10 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
It looks like you have requirements that are not met. To me, these say that the Win32 module is not installed. Whenever you have a require, the module MUST be installed. Heck, any time you use a module it needs to be there.

May I ask, since Perl is an interpreted language, why do you need to compile?
Jul 8 '10 #4

P: 3
sometimes when I am done with a new code, I need to trace it line by line to see what is going on and to make sure the result is correct. This is why I need to compile (using F8 key or related icon on perlide).
Jul 8 '10 #5

numberwhun
Expert Mod 2.5K+
P: 3,503
Gotcha. Unfortunately, I am unfamiliar with perlide. If I need to trace the code, I typically use perl debug and it allows me to follow the code, line by line. Its pretty nice once you get to know it.
Jul 8 '10 #6

Expert
P: 80
Which version of Active Perl do you use?
Jul 12 '10 #7

Post your reply

Sign in to post your reply or Sign up for a free account.