Re: Integrating a submit call inside a CGI

2002-07-22 Thread Wiggins d'Anconia
I am not an expert on CGI.pm (as I don't use it personally) but there didn't seem to be any other responses so I thought I would fire one off. If I am understanding what you asked correctly, there is no way to pass a "CGI object" to the new process from the old do to the fact that the browser

Re: SPLIT - What is it?

2002-07-22 Thread Wiggins d'Anconia
As the example given illustrates split is *more general* than just in database usage, or manipulation based on a single character (though these are probably two of the most common uses) split can be used on ANY string, and may use ANY regular expression to "split on" no matter where you ar

Re: SPLIT - What is it?

2002-07-22 Thread dan
split is a command to read files from made up databases.. for example, your database file reads: data1|data2|data3|data4 and you want to read from the database, "data2". to do this, you must open the file, read it to an array (or string if you know it's only going to be 1 line, but array's recom

RE: printf not printing correctly

2002-07-22 Thread Hughes, Andrew
Thanks! It works now. -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 2:57 PM To: 'Hughes, Andrew'; '[EMAIL PROTECTED]' Subject: RE: printf not printing correctly > -Original Message- > From: Hughes, Andrew [mailto:[EMAIL PROTECTE

Re: printf not printing correctly

2002-07-22 Thread fliptop
Hughes, Andrew wrote: > I am having a problem making printf work correctly. The following line of > code: > > printf("\$%4.2\n", $subtotal); you're missing a field type option in your format statement. printf "\$%4.2f\n", $subtotal; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: printf not printing correctly

2002-07-22 Thread Bob Showalter
> -Original Message- > From: Hughes, Andrew [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 2:53 PM > To: '[EMAIL PROTECTED]' > Subject: printf not printing correctly > > > I am having a problem making printf work correctly. The > following line of > code: > > printf("\$%4.

printf not printing correctly

2002-07-22 Thread Hughes, Andrew
I am having a problem making printf work correctly. The following line of code: printf("\$%4.2\n", $subtotal); prints outputs: $%4.2 to my browser. Subtotal is defined and if it equals 21 and I type: print qq($subtotal); it outputs 21. Does anyone have any suggestions? Thanks, Andrew --

RE: Running CGIs offline

2002-07-22 Thread Scot Robnett
Just a note to throw in my own WOOOH :) Gotta try it. Scot R. inSite -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:22 PM To: perl beginners cgi Cc: Bob Showalter Subject: Re: Running CGIs offline Bob, et al -- and then Bob Sh

Re: Running CGIs offline

2002-07-22 Thread David T-G
Bob, et al -- ...and then Bob Showalter said... % % > -Original Message- % > From: David T-G [mailto:[EMAIL PROTECTED]] ... % > You know, it never hurts to check CPAN; maybe someone has % > already written % > a little web server in perl :-) % % HTTP::Daemon, part of Bundle::libwww Wa

RE: Running CGIs offline

2002-07-22 Thread Bob Showalter
> -Original Message- > From: David T-G [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 2:08 PM > To: perl beginners cgi > Cc: [EMAIL PROTECTED] > Subject: Re: Running CGIs offline > hit you while this is running). > ... > You know, it never hurts to check CPAN; maybe someone has

Re: Running CGIs offline

2002-07-22 Thread David T-G
Timothy -- ...and then [EMAIL PROTECTED] said... % % I'm interested in taking a website, composed of HTML and perl cgis and % moving it offline. I want to burn it to a CD that will run on Mac and PC, % Explorer and Navigator. Are there tools to do this sort of thing? A % browser-based perl inter

RE: Running CGIs offline

2002-07-22 Thread Hughes, Andrew
I am running windows 2000 professional on my laptop and I am using Indigoperl (http://www.indigostar.com/indigoperl.htm). It was extremely easy to download, install and use. Andrew -Original Message- From: Scot Robnett [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:19 PM To: [

RE: Running CGIs offline

2002-07-22 Thread Scot Robnett
I have been interested in this sort of thing for awhile also. Looking forward to any helpful info! Scot R. inSite -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:06 PM To: [EMAIL PROTECTED] Subject: Running CGIs offline I'm interes

Running CGIs offline

2002-07-22 Thread Timothy_Spalding
I'm interested in taking a website, composed of HTML and perl cgis and moving it offline. I want to burn it to a CD that will run on Mac and PC, Explorer and Navigator. Are there tools to do this sort of thing? A browser-based perl interpreter? A CGI faker? Thank you for whatever you say! --

Integrating a submit call inside a CGI

2002-07-22 Thread Donald J Miller
Hello everyone, I am writing a CGI to access a database.  There is a form for the user to input the record into the database.  If the user inputs a record that is already in the database I would like the CGI to prompt the user they are doing this and if they wish to continue then the record will

Re: regex - problem

2002-07-22 Thread perl-dvd
Alex, Did you get the problem fixed? Yes it was because you did not escape your . when you wanted a . instead of an any character. ..[a-zA-Z]{2,3} will match ".abc", but it will also match "abcd" but \.[a-zA-Z]{2,3} will require that the first character this part of the regular expression

Re: Buffer output?

2002-07-22 Thread perl-dvd
Teddy, $|=1; is supposed to perl to print to standard out right away instead of buffer information. You see, by default Perl buffers what it is going to print out until the buffer is full, then prints. For some reason, when I use $|=1; It seems that the first output to STDOUT is buffere

Re: Buffer output?

2002-07-22 Thread fliptop
Octavian Rasnita wrote: > > I've seen the following line in more Perl scripts and even in some Perl > books, but it wasn't very well explained. > > $|=1; ## Don't buffer output > > What does it mean to buffer output? > Which is the difference if the $| is 0 or 1? perldoc perlfaq5 --

Buffer output?

2002-07-22 Thread Octavian Rasnita
Hi all, I've seen the following line in more Perl scripts and even in some Perl books, but it wasn't very well explained. $|=1; ## Don't buffer output What does it mean to buffer output? Which is the difference if the $| is 0 or 1? Thank you. Teddy Center: http://teddy.fcc.ro/ Mail: [E