Re: Make a sub routine return

2013-09-04 Thread Brandon McCaig
On Wed, Aug 28, 2013 at 11:48:45AM -0400, Harry Putnam wrote: > I know the format and scripting are probably pretty backwards but I > seem to recall it being important to have a `return' line in a > function. > > The code below was a script by itself but now I need to turn it into a > function in

Re: Dealing with apache timeout in Perl

2013-09-04 Thread Michael Brader
If you don't have control of the web server you're going to have to get creative. Instead of returning the zip file from the page that processes the request, you could: * ok - Fork a process to build the zip and place it in a location specific to the user or their session then return a page wi

Re: Dealing with apache timeout in Perl

2013-09-04 Thread Chankey Pathak
Sorry I can't do that. Isn't there any other way? On Wed, Sep 4, 2013 at 9:48 PM, jbiskofski wrote: > You need to fix this in Apache not in your web-app. The setting is called > TimeOut in your httpd.conf - this is the number of seconds Apache will wait > before sending a timeout error and endi

Re: DateTime::Format::MySQL not working as expected, throwing error

2013-09-04 Thread Dr.Ruud
On 05/09/2013 02:28, J M wrote: However, I'm running into a problem: the FIRST instance of DateTime::Format::MySQL works perfectly... but when I get to the second one, it throws me this error: Use of uninitialized value $input in concatenation (.) or string at /usr/local/share/perl/5.14.2/ Date

DateTime::Format::MySQL not working as expected, throwing error

2013-09-04 Thread J M
Hi! I'm writing a simple script to output data from a MySQL database... Eventually I'd like to pipe it all into a .tex file and make a custom pdf out of it. However, I'm running into a problem: the FIRST instance of DateTime::Format::MySQL works perfectly... but when I get to the second one, it t

Re: Resources on Multi threading

2013-09-04 Thread Shlomi Fish
Hi Shaji, On Wed, 4 Sep 2013 23:57:33 +0800 (SGT) *Shaji Kalidasan* wrote: > Dear Perlers, > > I need some resources (tutorials/documents) with some basic examples on Multi > threading for my understanding as I need to write a task which makes use of > threads. > > Any pointers to resources an

Resources on Multi threading

2013-09-04 Thread *Shaji Kalidasan*
Dear Perlers, I need some resources (tutorials/documents) with some basic examples on Multi threading for my understanding as I need to write a task which makes use of threads. Any pointers to resources and good tutorials with some simple examples will be of immense help. Thank you,   best, S

Re: Dealing with apache timeout in Perl

2013-09-04 Thread jbiskofski
You need to fix this in Apache not in your web-app. The setting is called TimeOut in your httpd.conf - this is the number of seconds Apache will wait before sending a timeout error and ending the request. - Jose from Mexico. On Wed, Sep 4, 2013 at 4:49 AM, Chankey Pathak wrote: > In my web-app

handeling multiple tcp connections

2013-09-04 Thread Marco van Kammen
Hi All, I'm looking for some good documentation on how to handle multiple tcp connections at the same time. Already have the book Network Programming with Perl (Lincoln D. Stein) Having a client / server based script that works with a single stream of network data in a single session e.g. a mail

Re: Recursive Validation Function

2013-09-04 Thread Mike Flannigan
On 9/2/2013 8:23 PM, John wrote: Hello all, I am writing a script to rename files. The script prompts the user to enter tokens which will comprise part of the file name. These are made of letters and numbers separated by a dot, ie: R.3. The letters can be R, I or C, upper or lowercase. The

Re: handeling multiple tcp connections

2013-09-04 Thread David Precious
On Wed, 4 Sep 2013 09:40:26 + Marco van Kammen wrote: > Hi All, > > I'm looking for some good documentation on how to handle multiple tcp > connections at the same time. [...] > Looked into IO::select and stuff but I'm just missing some good > simple clean examples. [...] As Shlomi said, th

Re: handeling multiple tcp connections

2013-09-04 Thread Shlomi Fish
Hi Marco, On Wed, 4 Sep 2013 09:40:26 + Marco van Kammen wrote: > Hi All, > > I'm looking for some good documentation on how to handle multiple tcp > connections at the same time. Already have the book Network Programming with > Perl (Lincoln D. Stein) I believe that book is heavily outda

Dealing with apache timeout in Perl

2013-09-04 Thread Chankey Pathak
In my web-app there is a HTML screen which provides the facility to select and download documents. If user selects some documents (using checkbox) and submits the form then then all of his selected documents gets downloaded in form of a zip file. What I do is that I take user's selected documents a

Re: Filtering Characters

2013-09-04 Thread Rob Dixon
On 04/09/2013 03:58, Michael Rasmussen wrote: On Wed, Sep 04, 2013 at 02:31:30AM +0100, Rob Dixon wrote: John's solution: next if /[^[:lower:]_\d\-. ]/; Doesn't work in this test environment: michael@bivy:~$ cat tpl && ./tpl #!/usr/bin/perl use strict; use warnings;