in reply to Sprite Module Call

I have Perl5.003 but I don't have access to it to add stuff. I can't install Sprite itself because I can't use Makefile.PLs which makes it difficult for me to install most modules. But there is supposed to be a Sprite call(which is what I'm having problems with) that you can use with Sprite.pm if you can't install Sprite as is. The URL should work for the sample file.
As far as I can tell the Perl we're using is a very stripped version with no added on libraries or modules. The error I'm getting is "syntax error in file db_phone.pl at line 3, next 2 tokens "use lib""

Replies are listed 'Best First'.
RE: Re: Sprite Module Call
by davorg (Chancellor) on Aug 15, 2000 at 23:12 UTC

    You might think you've got access to Perl 5.003, but it looks very much like you're running your program using some version of Perl 4 - that 'next 2 tokens "use lib"' is a bit of a giveaway.

    Try running perl -v to see which version is actually on your path.

    --
    <http://www.dave.org.uk>

    European Perl Conference - Sept 22/24 2000, ICA, London
    <http://www.yapc.org/Europe/>
      It is Perl 4 (my sys admin lied to me!)

      Also, what can I do to get "strict" "ExtUtils" and other such things when I don't have access to adding to Perl?

        What website is this?
        I want to tell everyone i know so that we can post all kinds of nasty stuff on it?

        Please get your sysadmin to UPGRADE to perl 5.

        P.S. Just kidding about the nasty stuff part.

        "cRaZy is co01, but sometimes cRaZy is cRaZy".
                                                              - crazyinsomniac

        It never hurts to check if the perl5 executable might be installed somewhere else. For instance, my ISP has perl4 installed as /usr/bin/perl, and the perl5 as /usr/local/bin/perl.

        Depending on the system you're on, you can try find / -name perl -print and see what comes up. On Linux boxes you should be able to try locate -r "/perl$" This will also return a few directories named perl, but you should only get a few hits that need looking at.

        --Chris

        e-mail jcwren
RE: Re: Sprite Module Call
by bliz (Acolyte) on Aug 16, 2000 at 20:09 UTC
    why can't you use "Makefile.PLs" ?? You can define a prefix of where to install the files under.. just install that somewhere you have access to (create your own perl libs directory structure) and then just add it to your include path with the -I command line option.... -- bliz