mod-perl

The future of Perl? (Perl 6, employability)

对着背影说爱祢 提交于 2019-12-02 20:33:35
I've found a few related questions, like Python vs. Perl (now deleted) and Is Perl Worth it? (now deleted), but I can't seem to find anything that directly addresses this question. Is there a legitimate future in Perl? I work in a Perl shop right now, and I came from PHP so I see some of the advantages of an arguably "lower" level language when doing things on the server-level, but it seems to me a lot of the tasks in Perl can be performed more quickly in PHP, and SOME ARGUE (subjective, not my opinion) that Python does these tasks in a more explicit way that's easier to maintain. Is having

Perl warning printed without 'use warnings' or -w in any files

佐手、 提交于 2019-12-02 07:03:55
问题 I have a lot of old Perl code that gets called frequently, I have been writing a new module and all of a sudden I'm getting a lot of warnings in my error_log for Apache, they are for every module currently being used. e.g, "my" variable $variable masks earlier declaration in same statement at /path/to/module.pm line 40 (#1) Useless use of hash element in void context at /path/to/another/module.pm line 212 (#2) The main layout of the codebase is one giant script that includes the modules and

Perl warning statements being printed without 'use warnings' or -w in any files

夙愿已清 提交于 2019-12-02 05:11:46
I have a lot of old Perl code that gets called frequently, I have been writing a new module and all of a sudden I'm getting a lot of warnings in my error_log for Apache, they are for every module currently being used. e.g, "my" variable $variable masks earlier declaration in same statement at /path/to/module.pm line 40 (#1) Useless use of hash element in void context at /path/to/another/module.pm line 212 (#2) The main layout of the codebase is one giant script that includes the modules and directs the requests to them needed to create certain pages for the website and the main script then

How can I track down CPU intensive requests in mod_perl?

孤者浪人 提交于 2019-11-30 22:25:37
Using Apache 2.2 and mod_perl on Ubuntu 8.04 I have several applications on a server. Using Apache in pre-forking mode. Usually things are working well but once in a while I see one of Apache processes using 100% of the CPU. There are several web sites on the server with their own VirtualHosts and there are is and SVN server running via Apache. How could I track down which application and which calls in that application generate the high load? Devel::NYTProf is pretty much the premier profiler for Perl right now, with Devel::NYTProf::Apache for easily profiling mod_perl applications. See Tim

How to install mod_perl 2.0.9 in Apache 2.4 on OS X Yosemite?

二次信任 提交于 2019-11-30 12:15:52
With the release of OS X 10.10 Yosemite, Apple upgraded its Apache server to version 2.4. At release time, mod_perl 2.0.8 was incompatible with Apache 2.4, and mod_perl 2.0.9 had not yet been officially released ( more info ). So, Apache was included without mod_perl. I work locally on a web site using perl and need to install mod_perl. I'm an experienced programmer, but I have never done anything like this before and have only my main machine to work on. I don't mind spending some time to figure this out, but I can't afford to bork my local server. How does one install mod_perl on OS X

What is the easiest way in pure Perl to stream from another HTTP resource?

ⅰ亾dé卋堺 提交于 2019-11-30 09:41:18
What is the easiest way (without opening a shell to curl and reading from stdin) in Perl to stream from another HTTP resource? I'm assuming here that the HTTP resource I'm reading from is a potentially infinite stream (or just really, really long) HTTP::Lite 's request method allows you to specify a callback. The $data_callback parameter, if used, is a way to filter the data as it is received or to handle large transfers. It must be a function reference, and will be passed: a reference to the instance of the http request making the callback, a reference to the current block of data about to be

How to install mod_perl 2.0.9 in Apache 2.4 on OS X Yosemite?

瘦欲@ 提交于 2019-11-29 17:49:22
问题 With the release of OS X 10.10 Yosemite, Apple upgraded its Apache server to version 2.4. At release time, mod_perl 2.0.8 was incompatible with Apache 2.4, and mod_perl 2.0.9 had not yet been officially released (more info). So, Apache was included without mod_perl. I work locally on a web site using perl and need to install mod_perl. I'm an experienced programmer, but I have never done anything like this before and have only my main machine to work on. I don't mind spending some time to

What is the easiest way in pure Perl to stream from another HTTP resource?

半城伤御伤魂 提交于 2019-11-29 15:11:21
问题 What is the easiest way (without opening a shell to curl and reading from stdin) in Perl to stream from another HTTP resource? I'm assuming here that the HTTP resource I'm reading from is a potentially infinite stream (or just really, really long) 回答1: HTTP::Lite's request method allows you to specify a callback. The $data_callback parameter, if used, is a way to filter the data as it is received or to handle large transfers. It must be a function reference, and will be passed: a reference to

Perl Connection Pooling

橙三吉。 提交于 2019-11-27 22:59:51
Right now we have a large perl application that is using raw DBI to connect to MySQL and execute SQL statements. It creates a connection each time and terminates. Were starting to approach mysql's connection limit (200 at once) It looks like DBIx::Connection supports application layer connection pooling. Has anybody had any experience with DBIx::Connection ?. Are there any other considerations for connection pooling? I also see mod_dbd which is an Apache mod that looks like it handles connection pooling. http://httpd.apache.org/docs/2.1/mod/mod_dbd.html I don't have any experience with DBIx:

Perl Connection Pooling

╄→гoц情女王★ 提交于 2019-11-26 23:16:06
问题 Right now we have a large perl application that is using raw DBI to connect to MySQL and execute SQL statements. It creates a connection each time and terminates. Were starting to approach mysql's connection limit (200 at once) It looks like DBIx::Connection supports application layer connection pooling. Has anybody had any experience with DBIx::Connection ?. Are there any other considerations for connection pooling? I also see mod_dbd which is an Apache mod that looks like it handles