Re: clear HTML POST data.

2010-04-23 Thread Chris Coggins
Ming Qian wrote: Dear Perl Pros: I have a simple perl cgi web page. It contains a simple form. Submitting it(with some POST Data) will redirect itself, insert the data into a database but with a "thank you" message in place of the html form. This is all working fine. However, when refresh the

Re: AW: Copy file from one server to another

2010-04-14 Thread Chris Coggins
Thomas Bätzler wrote: Chris Coggins asked: I need to copy a small config file from one server to another. I'm generating the file on one server with a pretty complex script. I need to put that file on another server for immediate user access via html. I've tried just writin

Copy file from one server to another

2010-04-12 Thread Chris Coggins
I need to copy a small config file from one server to another. I'm generating the file on one server with a pretty complex script. I need to put that file on another server for immediate user access via html. I've tried just writing the file straight to the new server over the network using abs

Re: html print

2010-04-12 Thread Chris Coggins
Shlomi Fish wrote: Hi Chris, A few comments on your code - some of which may help you. On Monday 12 Apr 2010 12:06:16 Chris Coggins wrote: I'm having trouble getting a piece of data from a form input to print in html. Here's the relevant portion of my code sub subroutine {

html print

2010-04-12 Thread Chris Coggins
I'm having trouble getting a piece of data from a form input to print in html. Here's the relevant portion of my code sub subroutine { my($hash) = shift; my($data) = "$hash->{'expl'}"; print "Content-type: text/html\n\n"; print

String length limits?

2010-04-08 Thread Chris Coggins
Is there a limit to the length of a string in perl? I'm combining about 200 pieces of data into a single string and writing the string to a file and am getting some weird behaviors every once in a while. Does perl have a limit on the length of a string it writes to a simple file? -- To unsubsc

Perl script writes another script, which characters to escape

2010-02-14 Thread Chris Coggins
I'm using a perl script to write another perl script that will be executed later. I need to know if all the characters that need to be escaped, are properly escaped. Can someone help, here's a portion of the code below. Are all the characters properly escaped? (note this is part of a much longe

Re: Syntax for if

2010-02-08 Thread Chris Coggins
Jim Gibson wrote: On 2/8/10 Mon Feb 8, 2010 6:07 PM, "Chris Coggins" scribbled: Chris Coggins wrote: I'm adding this exit step into the script to keep people from trying to execute it outside of the normal web interface. The script and browser communicate normall

Re: Syntax for if

2010-02-08 Thread Chris Coggins
Chris Coggins wrote: I'm adding this exit step into the script to keep people from trying to execute it outside of the normal web interface. The script and browser communicate normally if the script is executed through its original form. What I'm trying to prevent is someone

Re: Syntax for if

2010-02-08 Thread Chris Coggins
500 internal error. Is this the normal response for a script to prematurely exit using a browser to run it? Jim Gibson wrote: On 2/8/10 Mon Feb 8, 2010 4:56 PM, "Chris Coggins" scribbled: What is the proper syntax for a comparison at the end of a subroutine to stop the script if

Syntax for if

2010-02-08 Thread Chris Coggins
What is the proper syntax for a comparison at the end of a subroutine to stop the script if a certain variable is "0" or ''? sub routine{ (get data and process it) if $varA = '' || $varA = "0" { (stop script, print error message to user) } else{ (continue with script) } -- To unsubscribe, e-mai

Re: 1-line datafile, need data for another routine

2010-02-06 Thread Chris Coggins
Rob Dixon wrote: Chris Coggins wrote: I posted a question to this list yesterday from the google groups interface, asking for help with the following. I have since tried to post additional details in replies to that message using the google groups site and none of my posts have shown up on

Re: 1-line datafile, need data for another routine

2010-02-05 Thread Chris Coggins
I posted a question to this list yesterday from the google groups interface, asking for help with the following. I have since tried to post additional details in replies to that message using the google groups site and none of my posts have shown up on the list so let's try this again the right