in reply to how to install a perl module without telnet

I use the following procedure:Of course, if you don't have Webdrive, you wd have to save the file from the module by dragging 'n' dropping to your desktop or wherever, and then use whatever ftp client you have to upload it.

This is a pretty Windoze-oriented way to do things, and it only works for "pure" Perl modules, but when it works it's very easy.

§ George Sherston

Replies are listed 'Best First'.
Re: Re: how to install a perl module without telnet
by katgirl (Hermit) on May 31, 2002 at 11:34 UTC
    What do you do if you can't use Telnet OR ftp? I log on to the net from work and they won't allow either. All my up/downloading is done via http.
      katgirl wrote:
      What do you do if you can't use Telnet OR ftp? I log on to the net from work and they won't allow either. All my up/downloading is done via http.


      Use SSH. <evilgrin>

      Seriously, I'm not sure you will be able to install Perl modules simply through http, unless you already happen to have some sort of application on the server which accepts your upload and installs as appropriate.

      There are ways you could automate the task, "webbased perl installer", and an "email command installer" are first to come to mind, but all require shell access to the server, at least initially to setup the environement, if you know what I mean.

      Good Luck
      This is not the "be all, end all" for your dilemma, but it may get you a bit closer. ;) Have a look at this node as they seem to be discussing the prospect of a web-based module installation.
      Perhaps, you could try to install them with ppm or the module CPAN by a cgi-script. But there are several problems to solve:
      • For installation of most modules, you probably need root access. Perhaps, you could do so with sudo or the like (don't know about).
      • Then do try to execute some commands, e.g.:
        unless (open (PPM, "ppm install My::Module 2>&1 |")){ print "Error in executing ppm: $!\n"; } else { print "The result was: <HR>\n"; print <PPM>; close (PPM); }
        or use perl -MCPAN -e "install My::Module" instead of the ppm install - line. But you may get problems if you have to enter something. Maybe you could use the module Expect instead of the simple pipe-open...
      • Take care that nobody else can execute this cgi-script (e.g. with .htaccess)
      But I have never tried to do it this way.

      Best regards,
      perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"