Re: beginners-cgi Digest 26 Nov 2003 17:53:12 -0000 Issue 497

2003-11-27 Thread Dominique Okpara
http://www.geocities.com/geniusdoms/TheGenius [EMAIL PROTECTED] wrote: beginners-cgi Digest 26 Nov 2003 17:53:12 - Issue 497 Topics (messages 10148 through 10155): Re: extracting email addys. 10148 by: John Horner Storing Form Data without submitting it. 10149 by: Marcus Willemsen 10151

Re: beginners-cgi Digest 26 Nov 2003 17:53:12 -0000 Issue 497

2003-11-27 Thread Andrew Gaffney
Dominique Okpara wrote: http://www.geocities.com/geniusdoms/TheGenius [EMAIL PROTECTED] wrote: beginners-cgi Digest 26 Nov 2003 17:53:12 - Issue 497 Topics (messages 10148 through 10155): Re: extracting email addys. 10148 by: John Horner Storing Form Data without submitting it. 10149 by:

Re: Storing Form Data without submitting it.

2003-11-27 Thread Andrew Gaffney
Bob Showalter wrote: Andrew Gaffney wrote: I believe there is an HTTP status code that tells the browser that the form was successfully submitted, but not to go anywhere. I don't know what it is off the top of my head, but I think it would work in this case. Would that be 204 No Content?

Re: How to secure database password? (was Re: Perl/DBI newbie: password storage / security question)

2003-11-27 Thread Todd Farmer
I've written a custom module (say dbConnect.PM) where the password is hard-coded and is a return value from a function (e.g., get_password()). This module is not located in a publicly-accessible folder (i.e., not in htdocs or cgi-bin). My scripts in the cgi-bin call this custom module's function

command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
Good morning everybody, I am writing a small console application, allowing the user to perform some actions via a shell-like interface. The basics of this were rather easy, and with the help of some very nice CPAN modules (i.e. Base::Shell), I have got tab-completion, a help system and much more

RE: Sockets and Daemonizing - was Re: Count the no of times a script is called

2003-11-27 Thread Tom Kinzer
Not sure, I'm not an admin by trade, but I was actually referring to the fact that some admins assume that user Perl processes that don't die, are doing so unintentionally. I'm sure there may also be security issues with the user/socket coding as well. - -Tom Kinzer Long

RE: rendering html from perl

2003-11-27 Thread NYIMI Jose (BMB)
Nice to read ! http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html José. DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the

perl interactive system commands

2003-11-27 Thread rhlinux
elslam 3alikom, i wanna run an interactive system command through my program for example i wanna add a user with its password that is given in the program not by the user, do any one here have any idea how can i do so in perl i tried quote:

Re: Glob and space in directory name

2003-11-27 Thread Rob Dixon
David --- Senior Programmer Analyst --- Wgo Wagner wrote: Note: I went into File::Glob and it gives the following: Since v5.6.0, Perl's CORE::glob() is implemented in terms of bsd_glob(). [...] Due to historical reasons, CORE::glob() will also split its argument on whitespace, treating it

Re: perl interactive system commands

2003-11-27 Thread Andrew Gaffney
rhlinux wrote: elslam 3alikom, i wanna run an interactive system command through my program for example i wanna add a user with its password that is given in the program not by the user, do any one here have any idea how can i do so in perl i tried quote:

Re: Sockets and Daemonizing - was Re: Count the no of times a script is called

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 01:26 US/Pacific, Tom Kinzer wrote: Not sure, I'm not an admin by trade, but I was actually referring to the fact that some admins assume that user Perl processes that don't die, are doing so unintentionally. Ah! an interesting take. Having been one of those folks

problem using bash variables with command-line perl in bash script

2003-11-27 Thread Marcus Claesson
Hi! I have a problem with variables when using command-line perl in a bash script. The script should update a date (in 2003-10-10 form) if the argument, which is a file name, exists on the same line in the file updated_files.txt. #!/bin/bash FILENAME=$1 UPDATED=`date +%F` echo echo perl -wne

Re: command line interface handling asynchronicity

2003-11-27 Thread Douglas Lentz
Philipp Traeder wrote: Good morning everybody, I am writing a small console application, allowing the user to perform some actions via a shell-like interface. The basics of this were rather easy, and with the help of some very nice CPAN modules (i.e. Base::Shell), I have got tab-completion, a

Re: perl interactive system commands

2003-11-27 Thread drieux
On Monday, Dec 4, 1995, at 15:32 US/Pacific, rhlinux wrote: [..] quote: --- --- system(passwd username ) --- --- but this takes the password from

Re: problem using bash variables with command-line perl in bash script

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 10:04 US/Pacific, Marcus Claesson wrote: Hi! I have a problem with variables when using command-line perl in a bash script. The script should update a date (in 2003-10-10 form) if the argument, which is a file name, exists on the same line in the file

Re: problem using bash variables with command-line perl in bash script

2003-11-27 Thread John W. Krahn
Marcus Claesson wrote: Hi! Hello, I have a problem with variables when using command-line perl in a bash script. The script should update a date (in 2003-10-10 form) if the argument, which is a file name, exists on the same line in the file updated_files.txt. #!/bin/bash FILENAME=$1

Re: Count the no of times a script is called

2003-11-27 Thread John W. Krahn
Zentara wrote: On Wed, 26 Nov 2003 15:50:57 -0500, [EMAIL PROTECTED] (Amit Phatak) wrote: I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in the PERL SCRIPT (not the fortran program) to have a

Re: command line interface handling asynchronicity

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 09:58 US/Pacific, Douglas Lentz wrote: Philipp Traeder wrote: Good morning everybody, [..] # ... elsif ($cmd eq 'long_action') { if (!fork) { # execute the action in the child process sleep 10; # TODO:

Re: command line interface handling asynchronicity

2003-11-27 Thread John W. Krahn
Philipp Traeder wrote: Good morning everybody, Hello, I am writing a small console application, allowing the user to perform some actions via a shell-like interface. The basics of this were rather easy, and with the help of some very nice CPAN modules (i.e. Base::Shell), I have got

Re: command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
On Thu, 2003-11-27 at 21:37, drieux wrote: On Thursday, Nov 27, 2003, at 09:58 US/Pacific, Douglas Lentz wrote: Re: (A) What's the best way for the child to inform the parent that it's done?. Given that his question (A) is about 'informing' the parent that it is finished, he might

Re: command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
Not related to your question but, have you thought of using a dispatch table instead? sub help { # process help } sub long_action { # process long_action } my %process = ( help= \help, long_action = \long_action, simple_cmd = sub { print

Re: command line interface handling asynchronicity

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 14:10 US/Pacific, Philipp Traeder wrote: [..] The danger of primates banging on keyboards is - of course - always existent and quite high, but in this case I would settle for a first version that would be usable by more or less normal beings of the species homo [EMAIL

problems with case insensitive tr/// regexp

2003-11-27 Thread Dan Anderson
I'm trying to create a script to remove all font tags from an HTML documents. I created a regular expression like this: ,[ working code | use strict; | use warnings; | my $foo =font whe; | $foo =~ tr/\.*font.*\//d; | print $foo, \n; `---

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread Daniel Staal
--As off Thursday, November 27, 2003 7:42 PM -0500, Dan Anderson is alleged to have said: So what am I doing wrong and how do I make a case insensitive tr/// regexp? Thanks for your help, --As for the rest, it is mine. You can't make a case insensitive tr/// regexp: tr/// doesn't do

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread Daniel Staal
--As off Thursday, November 27, 2003 7:05 PM -0600, Perl Newbies is alleged to have said: --As off Thursday, November 27, 2003 7:42 PM -0500, Dan Anderson is alleged to have said: So what am I doing wrong and how do I make a case insensitive tr/// regexp? Thanks for your help, --As for

Re: command line interface handling asynchronicity

2003-11-27 Thread John W. Krahn
Philipp Traeder wrote: It is pretty simple, the perlipc man page has some good examples, but it is basically like this: elsif ( $cmd eq 'long_action' ) { defined( my $pid = fork ) or die Cannot fork: $!; unless ( $pid ) { # execute the action in the

Re: Is slicing web images possible with perl?

2003-11-27 Thread Motherofperls
In a message dated 11/26/03 6:28:54 AM Pacific Standard Time, [EMAIL PROTECTED] writes: BTW we'd all /really/ like to know who you are. This isn't a costume party :) I'm not sure what you meant by the above statement Rob. I'm guessing it goes with your signature. I think I will try GD. Is

Re: factorial function

2003-11-27 Thread Robert Brown
Shawn O'Donnell writes: Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? Do you mean 1000! That's a super-sized number--something like 10-to-the-2566th power, if I am using Sterling's approximation correctly. I don't know of a