Re: Simple cgi email

2010-02-05 Thread Robert H
On Fri, 05 Feb 2010 11:36:14 +0200, Shlomi Fish wrote: > Hi Bob! > >> > Yes, every user will get them. > > Regards, > > Shlomi Fish Hey Shlomi! :-) -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread Uri Guttman
> "cc" == chaccou...@camcontacts com writes: cc> Please unsubscribe from chaccou...@camcontacts.com and h...@camcontacts.com i don't manage this list. you can follow the directions for subscribing which are in the headers of each email on the list. uri -- Uri Guttman -- u...@stem

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread Uri Guttman
> "F" == Frank writes: F> #!/usr/bin/perl F> open(DATA,"data.txt"); F> while() { F> $number=$_; F> # print $number; F> while ($number =~ /([0-9]+)~s/g){ F> printf ("%d\n","$1"); F> } F> } F> close(DATA); regardless of the poor code there and others have commen

Re: complex subroutine arguments

2010-02-05 Thread Dr.Ruud
Eric Mooshagian wrote: What I would really like to do is pass an argument that includes comparators, for example, in pseudo code: exclude => (responsetime <= 200) && (responsetime >= 1200) where responsetime refers to an array. You could do it like SQL::Abstract does it: exclude => {

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread John W. Krahn
Frank wrote: On Feb 4, 4:35 pm, jwkr...@shaw.ca ("John W. Krahn") wrote: Chris wrote: I need some help with this problem. I've got a text file datafile with 1 line of data comprised of 30 different numbers delimited with ~s. I need to open this file, grab this line of data, split it into indivi

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread Frank
On Feb 4, 4:35 pm, jwkr...@shaw.ca ("John W. Krahn") wrote: > Chris wrote: > > I need some help with this problem. > > I've got a text file datafile with 1 line of data comprised of 30 > > different numbers delimited with ~s. > > > I need to open this file, grab this line of data, split it into > >

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread Chris
On Feb 4, 2:27 am, cacogg...@gmail.com (Chris) wrote: > I need some help with this problem. > I've got a text file datafile with 1 line of data comprised of 30 > different numbers delimited with ~s. > > I need to open this file, grab this line of data, split it into > individual numbers, perform so

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread FrankCai
For instance, here is your data file. data.txt 12~s1~s314~s5677~s899~s0~s Then, here is the code. #!/usr/bin/perl open(DATA,"data.txt"); while() { $number=$_; # print $number; while ($number =~ /([0-9]+)~s/g){ printf ("%d\n","$1"); } } close(DATA); On Feb 4, 7:27 am, cacogg...@gmai

Re: 1-line datafile, need data for another routine

2010-02-05 Thread Shlomi Fish
Hi Chris! On Friday 05 Feb 2010 11:56:49 Chris Coggins wrote: > I posted a question to this list yesterday from the google groups > interface, asking for help with the following. I have since tried to > post additional details in replies to that message using the google > groups site and none of m

Re: 1-line datafile, need data for another routine

2010-02-05 Thread Rob Dixon
Chris Coggins wrote: I posted a question to this list yesterday from the google groups interface, asking for help with the following. I have since tried to post additional details in replies to that message using the google groups site and none of my posts have shown up on the list so let's try

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread Shlomi Fish
Hi Frank! On Thursday 04 Feb 2010 19:24:41 Frank wrote: > For instance, the below is your data file --data.txt > 12~s1~s314~s5677~s899~s0~s > Here are the codes: > > #!/usr/bin/perl > open(DATA,"data.txt"); > while() { > $number=$_; > # print $number; > while ($number =~ /([0-9]+)~s/g){ >

Re: prepare(SELECT ... FROM TABLE) error

2010-02-05 Thread Dr.Ruud
Tony Esposito wrote: This question has never been answered. To out it another way, given the code ... foreach my $mytable (@mytables) { my $sth = $dbh->prepare("SELECT COUNT(*) FROM mytable"); # report error but move on to next table } how do I ignore the situation/error that DBI thro

Re: How to add a last-modified field to a page header ???? ....

2010-02-05 Thread Slide
On Feb 3, 12:37 pm, shlo...@iglu.org.il (Shlomi Fish) wrote: > Hi Slide! > > On Wednesday 03 Feb 2010 00:23:15 Slide wrote: > > > I have implemented a site using Perl, but I'm not really a Perl > > programmer, and now I want to modify the code so that dynamic pages > > are generated with a last-mod

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread Frank
For instance, the below is your data file --data.txt 12~s1~s314~s5677~s899~s0~s Here are the codes: #!/usr/bin/perl open(DATA,"data.txt"); while() { $number=$_; # print $number; while ($number =~ /([0-9]+)~s/g){ printf ("%d\n","$1"); } } close(DATA); On Feb 4, 7:27 am, cacogg...@gmail

Re: 1-line text file with numbers, need to add to them

2010-02-05 Thread Chris
On Feb 4, 10:59 am, shlo...@iglu.org.il (Shlomi Fish) wrote: > Hi Chris! > > Have you visitedhttp://perl-begin.org/yet and read a good introductory book > or tutorial? > > On Thursday 04 Feb 2010 09:27:32 Chris wrote: > > > I need some help with this problem. > > I've got a text file datafile with

Re: 1-line datafile, need data for another routine

2010-02-05 Thread Chris Coggins
I posted a question to this list yesterday from the google groups interface, asking for help with the following. I have since tried to post additional details in replies to that message using the google groups site and none of my posts have shown up on the list so let's try this again the right

Re: Simple cgi email

2010-02-05 Thread Shlomi Fish
Hi Bob! On Friday 05 Feb 2010 01:45:32 Robert H wrote: > On 2/2/10 1:46 PM, Uri Guttman wrote: > >> "RH" == Robert H writes: > >RH> I am just trying to do a simple emailer for a site. I came up > >with the RH> following and was wondering if there are any security > >issues that