Re: Need help with a simple (I think) Perl script



szr wrote:
Gunnar Hjalmarsson wrote:
szr wrote:
Gunnar Hjalmarsson wrote:
Bill H wrote:
The other suggestion of installing this or using that module, not
everyone who is programming in perl for cgi has their own server or
has the ability of adding new modules to the server (fortunatly I
do) and have to work within the capabilities of the system they are
running on. So if they post a problem and there is a solution that
wouldn't require them installing a module, recommend it, instead of
just saying use blah::blah.
Sometimes when people say "can't" install this or that module, they
actually mean "don't know how to". For instance, I have never heard
of a situation when a pure Perl module can't be installed, in one
way or another. So encouraging people to learn how to make use of
modules is usually the right thing to do.
There are some modules, even pure Perl ones, that might have a
dependency on something that isn't installed, and the user is not
able to install said dependency.
Well, I for one wouldn't say "pure Perl module" about a module that's
dependent on a non-core XS module.

Where did I say XS module? I meant even a pure Perl module could still require some facility on the system.

Ok, you are right, any kind of dependency may prevent a module from working.

OTOH, the point I was trying to make is that non-module solutions to presented problems should be a last resort, when suitable modules exist. Hope you can agree to that. :)

Or one doesn't have shell access or the
hosting account uses a Windows server (and most don't give you any
sort of shell or remote desktop access.)
You don't need shell access to install a pure Perl module. Sure, you
can't install it "the right way", but uploading a .pm file to a
suitable folder with e.g. FTP and adding a "use lib" statement is
always possible.

Yes, but that can still be problematic with certain kinds of hosting setups (again, Windows setups would fall into that category.)

What kinds of setups are you thinking of? It certainly does not apply to all Windows ditto.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.