473,467 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Perl script compiling

3 New Member
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
6 3521
numberwhun
3,509 Recognized Expert Moderator Specialist
That is pretty vague, can you please post your full error output here? Also, please post your code.

Regards,

Jeff
Jul 7 '10 #2
MahmoodA
3 New Member
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
3,509 Recognized Expert Moderator Specialist
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
MahmoodA
3 New Member
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
3,509 Recognized Expert Moderator Specialist
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
chorny
80 Recognized Expert New Member
Which version of Active Perl do you use?
Jul 12 '10 #7

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

Similar topics

3
by: dpackwood | last post by:
Hello, I have two different scripts that do pretty much the same thing. The main perl script is on Windows. It runs and in the middle of it, it then calls out another perl script that then...
9
by: Martin Foster | last post by:
Hi. I would like to be able to mimic the unix tool 'uniq' within a Perl script. I have a file with entries that look like this 4 10 21 37 58 83 111 145 184 226...
3
by: PzYon | last post by:
Hey 2gether! I'm trying to execute a PERL script on the web server when the user presses a button in an ASP.NET Web Application using Visual Basic. The most obvious solution for me seemed to be...
6
by: Richard Trahan | last post by:
I want a js function to call a Perl script residing on a server. The Perl script will return a string, to be used by the js. Pseudo code: <script> stringvar = perlfunc_on_server(stringarg)...
4
by: benwylie | last post by:
I am running IIS 6.0 on Windows 2003. I would like to be able to run a perl script from a web page and include the output. I have tried doing it with an ssi: <form action='docsearch.shtml'...
9
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at...
11
by: alnoir | last post by:
I'm using the Open Perl IDE to write perl scripts. Everytime I try to compile a script Open Perl will open another script called 'perl5db.pl' and find a compiling error in it. The result in the...
2
by: IvanIV | last post by:
Hi All, I have trouble with embedding a Perl interpreter into a C program. I would like to replace some subroutine in a Perl script without changing this script from my C program. I need...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
3
by: happyse27 | last post by:
Hi All, I am creating the perl script using html form(with embedded javascript inside). When using this html form with javascript alone, it works where the form validation will pop up...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.