RE: foreach loop

2011-03-22 Thread Jim Gibson
At 9:58 PM -0600 3/22/11, Chris Stinemetz wrote: Jim, You hit it right on. This is exactly what I am trying to do. OK. With this information and that from previous posts, your requirements may be summaryized as follows: You have a file with one record per line, each line consisting of a n

RE: foreach loop

2011-03-22 Thread Chris Stinemetz
Jim, You hit it right on. This is exactly what I am trying to do. > OK. With this information and that from previous posts, your requirements may > be summaryized as follows: > You have a file with one record per line, each line consisting of a number of > fields. Within each record may be fou

Re: foreach loop

2011-03-22 Thread Jim Gibson
On 3/22/11 Tue Mar 22, 2011 2:24 PM, "Chris Stinemetz" scribbled: >>> No, it doesn't. What is a "rlptxat" element? Where do they come from. > > "rlptxat" is just an element indexed at 44 that has a value, in which I would > like to sum up, when it has the same elements "cell" "sect" and "carr"

Re: shift oo

2011-03-22 Thread Uri Guttman
> "sw" == shawn wilson writes: sw> I learned a new way to use shift here (or probably any function sw> that uses $_) and I have (sorta learned about closures. you are doing it again. $_ and @_ have nothing to do with each other. and shift never touches $_. shift works on its array argume

Re: shift oo

2011-03-22 Thread shawn wilson
On Mar 22, 2011 4:43 PM, "Randal L. Schwartz" wrote: > > > "Peter" == Peter Scott writes: > > >> my $s = Streamer->new; > >> my $app = sub { > >> return sub { > >> $s->open_fh; > >> my $writer = shift->( > >> [ 200, [ "Content-type" => "text/plain" ], $s ] > >> ); > >> }; > >> }; > > Peter> A

RE: foreach loop

2011-03-22 Thread Chris Stinemetz
>>No, it doesn't. What is a "rlptxat" element? Where do they come from. "rlptxat" is just an element indexed at 44 that has a value, in which I would like to sum up, when it has the same elements "cell" "sect" and "carr" in the record. I hope this helps Thank you, Chris At 8:03 PM -0600 3/2

Re: Newbie needs help

2011-03-22 Thread Randal L. Schwartz
> "Geospectrum" == Geospectrum writes: Geospectrum> Hi am am setting up a small website and have set up formmail.pl to Geospectrum> create a way of people asking questions. I'm so very much hoping that you're not using Matt Wright's original formmail.pl, and instead using the one from NMS.

Re: shift oo

2011-03-22 Thread Randal L. Schwartz
> "Peter" == Peter Scott writes: >> my $s = Streamer->new; >> my $app = sub { >> return sub { >> $s->open_fh; >> my $writer = shift->( >> [ 200, [ "Content-type" => "text/plain" ], $s ] >> ); >> }; >> }; Peter> As it stands, this doesn't make sense because nothing happens to $writer; Peter

Re: Newbie needs help

2011-03-22 Thread shawn wilson
On Tue, Mar 22, 2011 at 1:05 PM, Geospectrum wrote: > Hi am am setting up a small website and have set up formmail.pl to > create a way of people asking questions. > > I'd like now to add a way of visitors to display a HTML page by > entering a number (invoice number) into a HTML form and then re

Newbie needs help

2011-03-22 Thread Geospectrum
Hi am am setting up a small website and have set up formmail.pl to create a way of people asking questions. I'd like now to add a way of visitors to display a HTML page by entering a number (invoice number) into a HTML form and then retrieve a html page. So I create a html page called http://www.m