Code Review Needed!

2001-06-28 Thread dave hoover
I would greatly appreciate ANY feedback anyone could provide. The following page will provide details and a link to download the tarball. http://www.redsquirreldesign.com/soapbox TIA = Dave Hoover "Twice blessed is help unlooked for." --Tolkien http://www.redsquirreldesign.com/dave __

hidden field value not getting set

2001-06-28 Thread Moon, John
Below is code to generate one or two forms... When both forms are generated the "hidden" value for the second form is not getting replaced with the "correct" value... Does anyone see a problem with this code ? Thanks in advance ... print $q->p($q->center( "Items from $REQUEST{

RE: split function question

2001-06-28 Thread Stephen Nelson
If you don't specify a LIMIT argument to split(), it chops off trailing null values, so your last few fields aren't listed. If you pass a negative argument, though, it'll pass those trailing nulls. So what you want is: my @asLine = split (/,/, $_, -1); Here's my code: $string = 'Broken,Heart

Re: Streaming mp3

2001-06-28 Thread iain truskett
* John Edwards ([EMAIL PROTECTED]) [28 Jun 2001 14:35]: > Hi. I'm writing some cgi to process an input (passed via URL encoding > on the end of the URL) and return to the browser the selected mp3, > streamed. > I've got some code that generates a m3u file, with the URL to the > right mp3, writes

Re: split function question

2001-06-28 Thread Brett W. McCoy
On Thu, 28 Jun 2001, Brian Bukeavich wrote: > Input data looks like: > Broken,Heart,36,20,05,05/03/2000,F,6,5,4,5,5,8,5,5,5,48,06,12,01,,, > > I am expecting: > Field 1 = Broken > Field 2 = Heart > Field 3 = 36 > Field 4 = 20 > Field 5 = 05 > Field 6 = 05/03/2000 > Field 20 = "" > Field 21 = "" >

Re: split function question

2001-06-28 Thread Brian Bukeavich
Input data looks like: Broken,Heart,36,20,05,05/03/2000,F,6,5,4,5,5,8,5,5,5,48,06,12,01,,, I am expecting: Field 1 = Broken Field 2 = Heart Field 3 = 36 Field 4 = 20 Field 5 = 05 Field 6 = 05/03/2000 Field 20 = "" Field 21 = "" Field 22 = "" Original Message Follows From: Curtis Poe <[EMA

RE: split function question

2001-06-28 Thread Moon, John
perl -e 'print "Enter your values as 1,2,3...:"; $_=<>; chomp; my @asLine=split (/,/, $_); foreach (@asLine) { print "asLine[".$i++."]=<$_>\n"; }' You may want to see what you have print "<$_>\n" for example just before you try the split ... -Original Message- From:

Re: split function question

2001-06-28 Thread Curtis Poe
--- Brian Bukeavich <[EMAIL PROTECTED]> wrote: > I need a little help with the split function. I'm trying to split a line > based on comma delimeters(,), but when I use the syntax below I don't get > the results I expect. What am I doing wrong? Is there a an special escape > sequence for a co

Re: split function question

2001-06-28 Thread Brett W. McCoy
On Thu, 28 Jun 2001, Brian Bukeavich wrote: > I need a little help with the split function. I'm trying to split a line > based on comma delimeters(,), but when I use the syntax below I don't get > the results I expect. What am I doing wrong? Is there a an special escape > sequence for a comma?

split function question

2001-06-28 Thread Brian Bukeavich
I need a little help with the split function. I'm trying to split a line based on comma delimeters(,), but when I use the syntax below I don't get the results I expect. What am I doing wrong? Is there a an special escape sequence for a comma? my @asLine = split (/,/, $_); Thanks __

Re: use strict errors?

2001-06-28 Thread Adam Carson
That's good. I thought that's what the error was. The list must finally be teaching me something. >>> Curtis Poe <[EMAIL PROTECTED]> 06/28/01 03:07PM >>> --- "RDWest Sr." <[EMAIL PROTECTED]> wrote: > hi yall, > maybe i been up too long... i'm confused with this...script works >

Re: use strict errors?

2001-06-28 Thread Curtis Poe
--- "RDWest Sr." <[EMAIL PROTECTED]> wrote: > hi yall, > maybe i been up too long... i'm confused with this...script works >fine but > returns errors with use strict... > could someone plz explain what i'm doing wrong? > tx 'use strict' will, amongst other things, force you to pre

Re: Perl Boilerplate???

2001-06-28 Thread Curtis Poe
Well, I used to put something like the following at the top of my programs: #D:/perl/bin/perl.exe -wT # Last updated June 22, 2001 # # Program: sys_admin.cgi # Author: Curtis Poe # Date Created: May 29, 2001 # Purpose: This program drives the various pa

use strict errors?

2001-06-28 Thread RDWest Sr.
hi yall, maybe i been up too long... i'm confused with this...script works fine but returns errors with use strict... could someone plz explain what i'm doing wrong? tx #!perl use strict; print "Content-type: text/html\n\n"; #**

Re: Perl Boilerplate???

2001-06-28 Thread Peter Scott
At 09:24 AM 6/28/01 -0500, David Simcik wrote: >Hey, > I, like the rest of you, am always looking for ways to make my > life more >convenient. Especially when coding. To this end, I am looking to fashion a >well-rounded template doc that I can use in Homesite (where I do most of my >work

Weekly list FAQ posting

2001-06-28 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 addr

Streaming mp3

2001-06-28 Thread John Edwards
Hi. I'm writing some cgi to process an input (passed via URL encoding on the end of the URL) and return to the browser the selected mp3, streamed. I've got some code that generates a m3u file, with the URL to the right mp3, writes that m3u to the disk on the server and redirects the browser to th

Perl Boilerplate???

2001-06-28 Thread David Simcik
Hey, I, like the rest of you, am always looking for ways to make my life more convenient. Especially when coding. To this end, I am looking to fashion a well-rounded template doc that I can use in Homesite (where I do most of my work right now) made up of the essential pieces I'd expect to

Re: AW: ? embed scalars in the sql

2001-06-28 Thread Francesco Scaglioni
Your simplified version worked fine - thank you - your deduction regarding the quoting seems to have been correct. Apologies for not replying earlier but BT (who seem to own our wan) decided to block everything but 'web' from our site and it has taken until now to get smtp and pop reinstated. Th

Re: Again : Including other files

2001-06-28 Thread Gabor Szabo
Hi Rajeev, it is the approach of perl4: without modules, You can use this but it will be better for you if created a module (or modules) from the included file and use that module. the performance difference is neglectable compared to the runtime of a script. see perldoc perlmod -- Gabor

Re: reg cgi pgm running

2001-06-28 Thread Roger C Haslock
I recommend you test your program from the command line first. When it works from the command line, find an iplanet newsgroup for advice on iplanet. - Original Message - From: "nila devaraj" <[EMAIL PROTECTED]> To: "Hal Wigoda" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, J