in reply to jpg file demensions

Can't you unpack the module on your own computer and then FTP it to the cgi-bin directory? Do you need root access to install a module? I'm kind of curious about this myself, since I've never installed a module except on my own computer.

Replies are listed 'Best First'.
Re^2: jpg file demensions
by larryp (Deacon) on Nov 23, 2004 at 07:03 UTC

    You don't need root access to install a module. You simply need to save it into a specific location such as /usr/local/path/to/MyModules/ModName.pm. Then include the module in your code using the lib pragma, like so:

    #!/usr/bin/perl -w use strict; use lib "/usr/local/path/to"; # Notice where this path ends... :) use MyModules::ModName; # Other use statements... # ...on with other code...

    This should work as long as the module is packaged into 'MyModules::ModName'. If it's a pre-existing module you're working with, alter the path in the lib statement and name in the use statement, accordingly. :)

    At least that's the way I've done it. If this is incorrect, I'm certain someone will correct me. I'd even go so far as to appreciate it! :)

    Hope this helps,

    /Larry