Re: interpolating a variable with a request parameter

2003-10-31 Thread radhika sambamurti
Thanks! That worked. On Fri, 31 Oct 2003 11:43:52 -0700 "Wiggins d Anconia" <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > I am trying to do this: > > > > > > for( $i = 0; $i < 5; $i++) { > > > $qty[$i] = $q->param('qty$i'); > > > } > > > I could say $q->qty0; > > >

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> > On Friday, Oct 31, 2003, at 10:01 US/Pacific, radhika sambamurti wrote: > > > Hi, > > I am trying to do this: > > > > for( $i = 0; $i < 5; $i++) { > > $qty[$i] = $q->param('qty$i'); > > what you are probably finding is that > > $qty[0] eq 'qty$i' > > since you used the sing

Re: interpolating a variable with a request parameter

2003-10-31 Thread drieux
On Friday, Oct 31, 2003, at 10:01 US/Pacific, radhika sambamurti wrote: Hi, I am trying to do this: for( $i = 0; $i < 5; $i++) { $qty[$i] = $q->param('qty$i'); what you are probably finding is that $qty[0] eq 'qty$i' since you used the single quote token. whereas $qty[$i] = $

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> > > > Hi, > > I am trying to do this: > > > > for( $i = 0; $i < 5; $i++) { > > $qty[$i] = $q->param('qty$i'); > > } > > I could say $q->qty0; > > $q->qty1; > > | > > | > > | > > $q->qty4; > > > > and be done with it. T

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> Hi, > I am trying to do this: > > for( $i = 0; $i < 5; $i++) { > $qty[$i] = $q->param('qty$i'); > } > I could say $q->qty0; > $q->qty1; > | > | > | > $q->qty4; > > and be done with it. That works. But I would

interpolating a variable with a request parameter

2003-10-31 Thread radhika sambamurti
Hi, I am trying to do this: for( $i = 0; $i < 5; $i++) { $qty[$i] = $q->param('qty$i'); } I could say $q->qty0; $q->qty1; | | | $q->qty4; and be done with it. That works. But I would rather do it from

Re: Only working with parameters

2003-10-31 Thread J. Alejandro Ceballos Z.
The links are real, and the message sent is "Premature end of scripts headers", like if I tryied to print something before sending the header, but I reviewed my code and only at last I send a print message, validated for any kind of call: It looks something like: if ($bExternal) { print "Lo

flock() semantics?

2003-10-31 Thread Shaun Fryer
Hi all, I'm writing an app which uses a flat file to store a *short* list of simple key/value pairs. However having read the flock() man page, I'm unsure about whether I need to seek() in cases where I'm not merely appending to the file (such as when deleting a record). sub Delete_Record { my

Re: Only working with parameters

2003-10-31 Thread Wiggins d Anconia
> > I created a CGI that returns an txt code (to display a banner), but what > it looks strange to me is that if I call it with only one parameter > (type of code to return, and associated variable) it works fine, but if > I use an other parameter, it sends me an error message. > > This wor

Only working with parameters

2003-10-31 Thread J. Alejandro Ceballos Z.
I created a CGI that returns an txt code (to display a banner), but what it looks strange to me is that if I call it with only one parameter (type of code to return, and associated variable) it works fine, but if I use an other parameter, it sends me an error message. This works fine: http://w