Perl 5.003 and

Posted on 2004-11-15
Last Modified: 2013-12-25

I have what seems to be a client on a very old host.  I want to be able to upload files to the server.

I can't use ASP as all the scripts I managed to find won't work with the version of VBScript I have available.

I'm now moving onto CGI.  I downloaded a 'simple' upload script for free and tried running it.  First I got an error which I interpreted to mean I didn't have installed.  I contacted the host and they said it "should be there".

I downloaded from the only website I could find to download it from and put it in the cgi-bin along with all the other files that came with it.  After running the script I now get a similar message:

Can't locate in @INC at line 32. BEGIN failed--compilation aborted at line 33. BEGIN failed--compilation aborted at /web/server/address/cgi-bin/upload.cgi line 159.

Only this time it's it can't find.

I ran for the fun of it (came with download)  and I get this error:

Perl 5.004 required--this is only version 5.003, stopped at /web/server/address/cgi-bin/Makefile.PL line 2.

So, I have now deduced that I have version 5.003 of Perl.  So can I get a version of that works for this?  And where?  I've searched on Google for "download" and most of the websites are so out of date the links don't work.

While I'm here, is there a way of uploading scripts without using the module?


Question by:houndour
    LVL 13

    Expert Comment

    The answer to this is that you should have your client update Perl. Newer versions of Perl come with an up to date CGI module that includes file upload capabilities. The 5.003 Perl version your client is running is _8 years_ old and shouldn't be used. It's very unlikely that you'll find a copy of the CGI module that is both compatible with version 5.003 and does what you want.

    You can install a fresh copy of Perl and leave the old copy intact if you're concerned about breaking stuff on the server. I assume that you have shell access if you can execute the Makefile.PL for You should install a new copy of Perl instead.

    Is this a windows or UNIX host? You mention VBScript. If it's a windows machine, you can get the newest perl from otherwise if it's a UNIX machine, there may be a binary package available for your particular flavour or you can get the source at

    LVL 48

    Accepted Solution

    Perl 5.003 really is ancient, has security issues and has no updates.

    However, if you can't update, you can try a really old version of  You can download every available version of CGI (or any other module for that matter) from

    Choose the appropriate version in the dropdown list.  The oldest version available on CPAN is 2.45

    I would also caution you with picking up random free scripts.  Unless you know Perl well, it is hard to sort out the cruft from well written code, and believe you me, there is a ton of really badly written Perl/CGI code out there.

    In general, if you want some quality written (and well supported and maintained) Perl/CGI scripts, then check out:

    Unfortunately, they don't have an upload script, but if you ever need stuff like a guestbook, formmail etc, it's a great place to start.

    Now, where did you get your upload script from?

    If you don't have any luck with, you can always go down the library, which pre-dates and was used extensively in the Perl 4 days and early Perl 5 days.

    Author Comment


    I have emailed the host again, asking them if they can upgrade Perl to 5.004.  And have also asked them what version of they have.

    I don't have shell access, i ran it from IE :s.

    Here are the server details:
    OS : Solaris v2.6

    Webserver : Stronghold Apache v1.2.6

    Languages supported : Chillisoft ASP v3.0.04.782, Frontpage 97 & 98 Extensions, Perl v4, v5

    Database supported : MySQL 3.22

    The upload script came from its called uploadLite.

    If the host refuse to upgrade Perl, should I use the  I might look into this now.  I'll post again when I get a reply from the host.

    LVL 48

    Expert Comment

    An upgrade to Perl 5.004 is hardly worth it, as that is a very old version as well.  The latest version of Perl is 5.8.5

    Looking at all the other versions you mentioned, I would be very worried as everything else is ancient as well.

    Apache 1.2.6 has security holes.

    When you are referring to the 'host', is this a service provider?  If so, I'd run a mile from them.  They obviously don't know/care about maintaining their systems.

    Author Comment

    Tintin, I totally agree.  The original spec for the job was for it to be done in PHP and MySQL which is where my experience lies.  Then I was told I had to work with ASP because thats what the client had.  It's been a nightmare since the start.  I could have finished this job in a week if it'd been PHP.  I've told my bosses that the hosting company (service provider) is crap and can we change it...the client won't change. I will put forward some more arguments for them to change service providers.

    Thanks for your help, I tried the, and it works.  I guess I'll have to go with that.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
    In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now