Re: Configuration Files

2001-08-23 Thread darren chamberlain
James Kelty <[EMAIL PROTECTED]> said something to this effect on 08/23/2001: > I would like to set up a configuration file for a CGI that I am writing > so that it will be portable without > editing the actual cgi. Stuff like administator email's, network > segments, and the like. > > Is there a

Re: Assigning variables from an array?

2001-08-14 Thread darren chamberlain
Dianne Van Dulken <[EMAIL PROTECTED]> said something to this effect on 08/14/2001: > I am receiving a lot of values from a form. I want to loop > through them and set new variables, with the same name, to the > same value. EG: I want the param value phone to be set to > $phone. So, you want t

Re: Round function

2001-08-09 Thread darren chamberlain
Fernando <[EMAIL PROTECTED]> said something to this effect on 08/08/2001: > If there in perl any function that round a number for example: > > 13.96 to 14.00 or 14 > > I don't want to use any module, just a simple function. Thanks for the help > I alwys receive. The easiest way is to add 0.5, a

Re: How to open a http or https url, as if it was a file

2001-08-08 Thread darren chamberlain
Gael PEGLIASCO <[EMAIL PROTECTED]> said something to this effect on 08/08/2001: > Hello, > > I'm looking for a way to open a http url, in order to retrieve > parts of its content and display it in a cgi script. > > I'd like to do things like : > > open (FILE, 'http://www.myurl.com'); or > open

Re: PERL Array to hash table help

2001-08-08 Thread darren chamberlain
David Draley <[EMAIL PROTECTED]> said something to this effect on 08/08/2001: > hello - > > I am writing a search script that will retrieve records from an > MYSQL db. I have used an array to store the returned records, > but I am having problems pushing the array into a hash table. > So far, my

Re: Two Array into One Hash

2001-07-17 Thread darren chamberlain
Tillema, Glenn <[EMAIL PROTECTED]> said something to this effect on 07/17/2001: > I know there must be an easy way to do this but the solution evades me > and I'm hoping someone here either knows the answer or can point me in > the right direction so I can figure it out myself ... on to the > ques

Re: Perl script to form on remote host

2001-07-15 Thread darren chamberlain
Felipe Figueiredo <[EMAIL PROTECTED]> said something to this effect on 07/15/2001: > Hi all, > > I need a script that passes the form information I want to the > website, but I will be running the script from the shell. > Reason: so I can do a repetitive job automagically. > > So, suppose I know

Re: Is my script too big?

2001-07-13 Thread darren chamberlain
[ I lost the original message. Sorry!] > Have you looked at things like HTML::Template to seperate out and manage > your HTML? > > I personally have *finally* started to practice what I preach, and I am > finding it easier. I'm just about to start looking at HTML::Template > myself. Quite oft

Re: need system () command understanding

2001-07-13 Thread darren chamberlain
Dave, Dave C. Brewington <[EMAIL PROTECTED]> said something to this effect on 07/12/2001: > I am using a script to parse through info sent in from a web > form. The information is parsed and creates two text files. > One is used for a flat text history file and the other flat > text file is use

Re: Regrex substitution!!!

2001-07-12 Thread darren chamberlain
Fernando <[EMAIL PROTECTED]> said something to this effect on 07/11/2001: > I have a credit card number that I want to change to email a > reciept to the customer. This is that I want: > > I have this number: e.j. 8578 596 8552 > I want to convert all the number to "x" like that xxx xxx

Re: extension

2001-07-10 Thread darren chamberlain
RL Autry <[EMAIL PROTECTED]> said something to this effect on 07/10/2001: > Can anyone tell us where to find a list of all of the extensions used in > cgi programming. > Such as in this address:cgi-bin/rightnow.cfg/php/ > what would type of Perl file would*.cfg be? Unfortunately, what

Re: floor

2001-07-09 Thread darren chamberlain
d say that no matter what $QCTAvgSecs is, the sprintf is going to be slower. An even better way would be POSIX::floor, as perldoc -f int will tell us, although that might also be slower than int. use POSIX qw(floor); my $pi = 3.1415927; print floor $pi; (darren) > At 01:46 PM 7/9/2001, darren

Re: floor

2001-07-09 Thread darren chamberlain
Thomas Jakub <[EMAIL PROTECTED]> said something to this effect on 07/09/2001: > in c++ you can floor a variable to drop the decimal > points. How can you do this with perl? Use the int function (perldoc -f int). my $pi = 3.1415927; print int $pi; # prints 3 (darren) -- Westheimer's Discove

Re: Deleting rows using checkboxes and PostgreSQL

2001-07-09 Thread darren chamberlain
skazat <[EMAIL PROTECTED]> said something to this effect on 07/09/2001: > use the CGI.pm module, checkbox values will come back as an array, so do > something like, > > > my $q = new CGI; > my @checked_values = $q->param('whatever_row_i_want_to_chuck'); > > > then use the DBI module to chuck

Re: Writing Dynamic tables

2001-07-03 Thread darren chamberlain
James Kelty <[EMAIL PROTECTED]> said something to this effect on 07/03/2001: > I have connected to a MySQL database, and I am creating a table > based on the row fetched which is not a problem. But! How can I > write a table when multiple rows are fetched without writing a > new table for each row

Re: the phantom file handle

2001-06-29 Thread darren chamberlain
Francesco Scaglioni <[EMAIL PROTECTED]> said something to this effect on 06/29/2001: > Hi > > And thanks again. > > Can anyone suggest why the following gives me an error of: > > 'no comma allowed after filehandle at /cgi-bin/filename line 13' > > Line 13 is the print header, start_html( etc e