AW: CGI and persistent data (without Storable)

2009-08-28 Thread Thomas Bätzler
Steve Bertrand st...@ibctech.ca asked: I'm writing a web interface using CGI::Application for a project that houses numerous methods within a dozen modules. One particular process displays a template to the user with passed in data, and then has four more steps before completing. The result

User input, STDIN Ctrl-D

2009-08-28 Thread Tim Bowden
I'm trying to get user input at the end of every loop but it's not quite working properly. The possibilities should be (i) an arg to be used in further processing, (ii) 'nothing' (ie, '\n') to default to next value, or (iii) Ctrl-D to finish processing altogether. #!/usr/bin/perl -wT use strict;

Re: AW: CGI and persistent data (without Storable)

2009-08-28 Thread Steve Bertrand
Thomas Bätzler wrote: Steve Bertrand st...@ibctech.ca asked: I'm writing a web interface using CGI::Application for a project that houses numerous methods within a dozen modules. One particular process displays a template to the user with passed in data, and then has four more steps before

Re: AW: CGI and persistent data (without Storable)

2009-08-28 Thread Dermot
2009/8/28 Steve Bertrand st...@ibctech.ca: Thomas Bätzler wrote: Steve Bertrand st...@ibctech.ca asked: I'm writing a web interface using CGI::Application for a project that houses numerous methods within a dozen modules. One particular process displays a template to the user with passed in

Creating array variable names on the fly

2009-08-28 Thread ANJAN PURKAYASTHA
Hi, I have a question on creating array variables. I have a driver script that takes as input the number of files to be processed (say 7). One of the children scripts needs to create array variables based on how many files are being processed (in this case 7). How do I code the following action

Re: AW: CGI and persistent data (without Storable)

2009-08-28 Thread Steve Bertrand
Shawn H. Corey wrote: Steve Bertrand wrote: My understanding has always been that when a perl script exits, any memory that it can't free due to dangling pointers is doomed. This leaked memory is never released back to the OS, and is permanently 'saved' for future invocations of other Perl

Re: AW: CGI and persistent data (without Storable)

2009-08-28 Thread Shawn H. Corey
Steve Bertrand wrote: My understanding has always been that when a perl script exits, any memory that it can't free due to dangling pointers is doomed. This leaked memory is never released back to the OS, and is permanently 'saved' for future invocations of other Perl programs. Perhaps I've

Re: Creating array variable names on the fly

2009-08-28 Thread Steve Bertrand
ANJAN PURKAYASTHA wrote: Hi, I have a question on creating array variables. I have a driver script that takes as input the number of files to be processed (say 7). One of the children scripts needs to create array variables based on how many files are being processed (in this case 7). How

Re: Creating array variable names on the fly

2009-08-28 Thread Jenda Krynicky
From: ANJAN PURKAYASTHA anjan.purkayas...@gmail.com Hi, I have a question on creating array variables. I have a driver script that takes as input the number of files to be processed (say 7). One of the children scripts needs to create array variables based on how many files are being

Re: Creating array variable names on the fly

2009-08-28 Thread Shawn H. Corey
ANJAN PURKAYASTHA wrote: Hi, I have a question on creating array variables. I have a driver script that takes as input the number of files to be processed (say 7). One of the children scripts needs to create array variables based on how many files are being processed (in this case 7). How do

Re: CGI and persistent data (without Storable)

2009-08-28 Thread Chas. Owens
On Fri, Aug 28, 2009 at 03:30, Thomas Bätzlert.baetz...@bringe.com wrote: snip If you can't use mod_perl or a stand-alone jifty server and if you have a Unix system, http://search.cpan.org/~samtregar/IPC-SharedCache-1.3/SharedCache.pm might be useful. snip I second the vote for shared

Re: Creating array variable names on the fly

2009-08-28 Thread Steve Bertrand
Jenda Krynicky wrote: From: ANJAN PURKAYASTHA anjan.purkayas...@gmail.com Hi, I have a question on creating array variables. I have a driver script that takes as input the number of files to be processed (say 7). One of the children scripts needs to create array variables based on how many

Re: Creating array variable names on the fly

2009-08-28 Thread ANJAN PURKAYASTHA
Thanks for your feedback guys. I think I have enough material to start coding. Cheers! Anjan On Fri, Aug 28, 2009 at 9:32 AM, Steve Bertrand st...@ibctech.ca wrote: Jenda Krynicky wrote: From: ANJAN PURKAYASTHA anjan.purkayas...@gmail.com Hi, I have a question on creating array variables.

Re: AW: CGI and persistent data (without Storable)

2009-08-28 Thread Chas. Owens
On Fri, Aug 28, 2009 at 08:56, Steve Bertrandst...@ibctech.ca wrote: snip I understand that doing something like this would be extremely volatile and very risky, but to be honest, I'm beyond looking at it as something useful, and more interested in knowing if it can be done :) snip There are

RE: Printing a hash of hashes of arrays

2009-08-28 Thread Wagner, David --- Senior Programmer Analyst --- CFS
-Original Message- From: Ian [mailto:pcs...@gmail.com] Sent: Thursday, August 27, 2009 11:43 To: beginners@perl.org Subject: Printing a hash of hashes of arrays Pure beginners question. I'm creating a hash of arrays like this : $ihash{$3}{$1} = [...@itab]; For now I was

Re: CGI and persistent data (without Storable)

2009-08-28 Thread Randal L. Schwartz
Steve == Steve Bertrand st...@ibctech.ca writes: Steve Given that I can get through the web GUI portion of the process with Steve just a couple of params, I'd like to find a way to retain the entire Steve data structure without having to re-instantiate it (which requires Steve rebuilding

Re: Exploiting the Perl

2009-08-28 Thread Randal L. Schwartz
Steve == Steve Bertrand st...@ibctech.ca writes: Steve My last question, rephrased to be direct-to-the-point: Multi-part Steve howto, or STFU if it's not possible request: Just a why would help. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Re: Exploiting the Perl

2009-08-28 Thread Uri Guttman
SB == Steve Bertrand st...@ibctech.ca writes: SB My last question, rephrased to be direct-to-the-point: SB Multi-part howto, or STFU if it's not possible request: no, i won't stfu. first off this isn't close to a beginner's question. complex stuff like perl guts, memory leaks and reloadable