Re: newbie need help

2003-01-16 Thread Glynn S. Condez
From: "Laird Shaw" <[EMAIL PROTECTED]> Hi Laird, Your email help me alot on how to handle this kind of problem. actually, i solved the problem by adding a variable and additional if: my $see = 'N'; if ($see eq 'N') { if ($username =~ /\b$field2\b/) { $see = 'Y'; } e

Re: Making script case insensitive

2003-01-16 Thread Octavian Rasnita
You need to transform the variable using the lc function (or the uc). Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "Bob Williams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 2:13 PM Subject: Making script

RE: cgi.pm generate html vs. print <

2003-01-16 Thread Hughes, Andrew
I added the content header line, and it does not work with that in there. I am pointing to the results.tmpl file which is in the same folder as the the .pl script. I found another test script on the web on another website, and I have the same problem -- the tags are not replaced with the informat

Re: HTTP headers

2003-01-16 Thread Philip Pawley
Thanks William, The server is Apache. I was calling the script using an SSI in an html page: I just tried calling the script directly with the browser and that did work. I suppose this means that you can't alter the headers using a script called with a virtual include. Is that right? Actually

RE: cgi.pm generate html vs. print <

2003-01-16 Thread fliptop
On Thu, 16 Jan 2003 at 11:49, Hughes, Andrew opined: HA:Thanks for the feedback. Before I get started on the html::template HA:tutorial, I wanted to try a quick sample page using html::template. HA:However, when I try it, I cannot get the tag in the html to process. Could HA:someone take a look

RE: cgi.pm generate html vs. print <

2003-01-16 Thread Hughes, Andrew
Thanks for the feedback. Before I get started on the html::template tutorial, I wanted to try a quick sample page using html::template. However, when I try it, I cannot get the tag in the html to process. Could someone take a look and let me know what you think I am doing incorrectly? ##

Re: HTTP headers

2003-01-16 Thread William McKee
Hi Philip, I looked at the script. How are you running it? From the command line or from a web server? It works fine on the comand line and from the server for me. What server are you using to display it? I'm using Apache. If you are running it from the server you may need to include -nph => 1 t

Weekly list FAQ posting

2003-01-16 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addre

Making script case insensitive

2003-01-16 Thread Bob Williams
How can this script compare two lists and save the matched components while being insensitive to case? This script compares a subscription list against the standard list and removes the emails not in the standard list. It works, but if cases do not match in every detail, it fails. Thanks. %bingo_s

Re: cgi.pm generate html vs. print <

2003-01-16 Thread fliptop
On Wed, 15 Jan 2003 at 21:11, Hughes, Andrew opined: HA:does anyone have any strong feelings (know of tutorials) toward an HA:altrnative method like html::template or html::mason? Any and all HA:suggestions are greatly appreciated. http://www.peacecomputers.com/addressbook/step5.html -- To un

Re: newbie need help

2003-01-16 Thread Laird Shaw
The problem is that it is printing something for each line regardless of whether it has already found a match. What you need to do is save whether you have found a match or not in a variable, then selectively print, ie: a) set your variable to be false - ie indicating that you haven't found a m