Re: Need help with a simple (I think) Perl script
- From: "szr" <szrRE@xxxxxxxxxxxxxxx>
- Date: Thu, 29 May 2008 20:43:32 -0700
Gunnar Hjalmarsson wrote:
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. :)
Yes, I can agree to that (though I thought we were talking about
installing modules; I didn't see anything mentioned about using
non-module solutions.)
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.
Many shared hosting setups make difficult to use any module that doesn't
work out of the box ("out of the box" meaning pulling out the .pm's and
such into a dir and using 'use lib'.)
--
szr
.
- References:
- Need help with a simple (I think) Perl script
- From: *** Sutton
- Re: Need help with a simple (I think) Perl script
- From: A. Sinan Unur
- Re: Need help with a simple (I think) Perl script
- From: *** Sutton
- Re: Need help with a simple (I think) Perl script
- From: Lawrence Statton
- Re: Need help with a simple (I think) Perl script
- From: Ted Zlatanov
- Re: Need help with a simple (I think) Perl script
- From: A. Sinan Unur
- Re: Need help with a simple (I think) Perl script
- From: Ben Bullock
- Re: Need help with a simple (I think) Perl script
- From: Bill H
- Re: Need help with a simple (I think) Perl script
- From: Gunnar Hjalmarsson
- Re: Need help with a simple (I think) Perl script
- From: szr
- Re: Need help with a simple (I think) Perl script
- From: Gunnar Hjalmarsson
- Re: Need help with a simple (I think) Perl script
- From: szr
- Re: Need help with a simple (I think) Perl script
- From: Gunnar Hjalmarsson
- Need help with a simple (I think) Perl script
- Prev by Date: Re: Need help with a simple (I think) Perl script
- Next by Date: Re: Perldoc recommendation
- Previous by thread: Re: Need help with a simple (I think) Perl script
- Next by thread: Re: Need help with a simple (I think) Perl script
- Index(es):