Saving param after new recall of a cgi script

2009-11-27 Thread Marek
Hello all! Hope that I can explain my problem clearly: 1. I have a long form, created from a xyz.cgi (action= that means is empty) 2. The user fills up the form and sends (action=send) The parameters are send with an self reference to the same xyz.cgi. This script examines with several

Re: Saving param after new recall of a cgi script

2009-11-27 Thread Robert Roggenbuck
You should store the values from step 2 at step 3 in hidden parameters (input type=hidden ...). The You can access them via CGI in step 4. An alternative would be storing the whole CGI-object in a file using Data::Dumper and recreate it using 'do $file'. Greetings Robert Marek schrieb:

Loading results (via ajax) from a CGI

2009-11-27 Thread buzon
I have a CGI (made with cgi.pm) that receive a parameters, check against a DB and returns a text with not found or OK found message. Pretty simple. In other site, i have an ajax routine that sends the parameters (via get) and is expected to capture the resulting page, but is not working.

Re: Loading results (via ajax) from a CGI

2009-11-27 Thread Alexander Krasnorutsky
On Fri, 2009-11-27 at 05:58 -0800, bu...@alejandro.ceballos.info wrote: I have a CGI (made with cgi.pm) that receive a parameters, check against a DB and returns a text with not found or OK found message. Pretty simple. In other site, i have an ajax routine that sends the parameters (via

Re: Saving param after new recall of a cgi script

2009-11-27 Thread Greg Jetter
On Thursday 26 November 2009 12:35:48 pm Marek wrote: Hello all! Hope that I can explain my problem clearly: 1. I have a long form, created from a xyz.cgi (action= that means is empty) 2. The user fills up the form and sends (action=send) The parameters are send with an self reference

Re: calc time elapsed in days

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 5:43 AM, raphael() raphael.j...@gmail.com wrote: Hi, I have to code a script to calc time elapsed in days as to calc the rent to be charged. The person would write an object number and date in a text file like db.txt OBJECT_NUM, DATE_GIVEN 2525,25.11.2008

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-27 Thread CM
It's Shlomi (English spelling) - not Schlomi (German Spelling). Many people make this mistake. My apologies. What does cat /etc/debian_version say? 4.0 I hit on an idea that each text file coming from different sources will have the Unicode UTF8 hex string of all the special

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-27 Thread Shlomi Fish
Hi CM! On Thursday 26 Nov 2009 18:42:30 CM wrote: It's Shlomi (English spelling) - not Schlomi (German Spelling). Many people make this mistake. My apologies. What does cat /etc/debian_version say? 4.0 I hit on an idea that each text file coming from different sources will

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-27 Thread CM
You can use regexes to match specific characters. But generally your converter (e.g: of ahttp://en.wikipedia.org/wiki/Lightweight_markup_language) wil ldo that for you. Do you need to guess the language of the document? I still don't understand exactly what you want to do. Shlomi, I do

Re: calc time elapsed in days

2009-11-27 Thread Dermot
2009/11/27 Rob Coops rco...@gmail.com: On Fri, Nov 27, 2009 at 5:43 AM, raphael() raphael.j...@gmail.com wrote: HOW CAN I COUNT ELAPSED DAYS ? I tried in localtime() days value like my @array_date = localtime(); my $current_dayofyear = @array_date[7]; But this would break on New year as

RE: dcc chat example

2009-11-27 Thread Kammen van, Marco, Springer SBM NL
Absolutely no'one with a example or hint in the right direction??? :-( - Marco van Kammen Springer Science+Business Media System Manager Postmaster - van Godewijckstraat 30 | 3311 GX Office Number: 05E21 Dordrecht | The Netherlands -   tel   +31(78)6576446 fax   +31(78)6576302 -

Re: calc time elapsed in days

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 11:25 AM, Dermot paik...@googlemail.com wrote: 2009/11/27 Rob Coops rco...@gmail.com: On Fri, Nov 27, 2009 at 5:43 AM, raphael() raphael.j...@gmail.com wrote: HOW CAN I COUNT ELAPSED DAYS ? I tried in localtime() days value like my @array_date =

Re: dcc chat example

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 11:26 AM, Kammen van, Marco, Springer SBM NL marco.vankam...@springer.com wrote: Absolutely no'one with a example or hint in the right direction??? :-( - Marco van Kammen Springer Science+Business Media System Manager Postmaster - van Godewijckstraat 30 | 3311

Re: dcc chat example

2009-11-27 Thread Shlomi Fish
On Friday 27 Nov 2009 12:49:28 Rob Coops wrote: On Fri, Nov 27, 2009 at 11:26 AM, Kammen van, Marco, Springer SBM NL marco.vankam...@springer.com wrote: Absolutely no'one with a example or hint in the right direction??? :-( - Marco van Kammen Springer Science+Business Media

A simple question about the Perl line

2009-11-27 Thread Majian
Hi ,all: I have a problem about this : cat test: 12 23 34 45 56 67 ... I want to become like this : 1223 3445 5667 ... That means the next line is after the above line ~ I thought it for a long time , but I have no idea yet~~ Can someone help me ? Thanks

Re: A simple question about the Perl line

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 8:03 PM, Majian jian...@gmail.com wrote: Hi ,all: I have a problem about this : cat test: 12 23 34 45 56 67 ... I want to become like this : 1223 3445 5667 ... # perl -e ' $m=EOF; 12 23 34 45 56 67 EOF open FD,,\$m; while(FD) { chomp if $.%2;

a simple question about the line

2009-11-27 Thread Majian
Hi, all : I have a problem about the lines of the file , like this : cat test 12 23 34 45 56 67 78 ... == I want to display like this : 1223 3445 5667 It means the next line is after the last line . How do it by the Perl ? Thanks in advance ~ -- To unsubscribe,

Re: A simple question about the Perl line

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 8:34 PM, Majian jian...@gmail.com wrote: Could  you explain  it ? What is the meaning of the $.? And Why use  the %2  operator? $. means the line number, see perldoc perlvar and look for $. %2 means the modulus operator. # perl -le 'print $_%2 for 0..3' 0 1 0 1 HTH.

for loop

2009-11-27 Thread PigInACage
Hello all. I've got a file CSV with 3 column name,surname,group if one of the column has got a space like Davide,Super Dooper,Group I cannot use it in a for loop for i in `cat list.csv` ; do echo $i ; done the result is Davide,Super Dooper,Group how can I have all inone line? Really thanks.

Re: Problems in POSIX

2009-11-27 Thread C.DeRykus
On Nov 25, 7:44 am, raheel.has...@gmail.com (Raheel Hassan) wrote: I am unable to understand the use of these statements in the program, I have read about POSIX in the CPAN but still things are not clear to me. use POSIX :sys_wait_h;  #What sys_wait_h does? waitpid($_,WNOHANG) # what is

Re: Separating DB operations out of program code

2009-11-27 Thread Steve Bertrand
Dermot wrote: 2009/11/26 Scott Pham scott.p...@gmail.com: Have you looked at DBIx::Class? I'd 2nd that. DBIx is the way forward. You should be looking to stop writing SQL statements and moving towards ORM. Try the example at

Re: for loop

2009-11-27 Thread Steve Bertrand
PigInACage wrote: Hello all. I've got a file CSV with 3 column name,surname,group if one of the column has got a space like Davide,Super Dooper,Group I cannot use it in a for loop for i in `cat list.csv` ; do echo $i ; done the result is Davide,Super Dooper,Group how can I have

Re: for loop

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 6:32 PM, PigInACage davide.papa...@gmail.com wrote: Hello all. I've got a file CSV with 3 column name,surname,group if one of the column has got a space like Davide,Super Dooper,Group I cannot use it in a for loop for i in `cat list.csv` ; do echo $i ; done the

Re: for loop

2009-11-27 Thread Shawn H Corey
PigInACage wrote: Hello all. I've got a file CSV with 3 column name,surname,group if one of the column has got a space like Davide,Super Dooper,Group I cannot use it in a for loop for i in `cat list.csv` ; do echo $i ; done the result is Davide,Super Dooper,Group how can I have

Re: a simple question about the line

2009-11-27 Thread John W. Krahn
Majian wrote: Hi, all : Hello, I have a problem about the lines of the file , like this : cat test 12 23 34 45 56 67 78 ... == I want to display like this : 1223 3445 5667 It means the next line is after the last line . How do it by the Perl ? $ echo 12 23 34 45 56

Re: a simple question about the line

2009-11-27 Thread Dermot
2009/11/27 John W. Krahn jwkr...@shaw.ca: Hello, $ echo 12 23 34 45 56 67 78 | perl -lpe'$\=--$|?$,:$/' 1223 3445 5667 78 For the benefit of this Luddite, please explain? Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail:

Re: A simple question about the Perl line

2009-11-27 Thread Randal L. Schwartz
Majian == Majian jian...@gmail.com writes: Majian Hi ,all: Majian I have a problem about this : Majian cat test: Majian 12 Majian 23 Majian 34 Majian 45 Majian 56 Majian 67 Majian I want to become like this : Majian 1223 Majian 3445 Majian 5667 Majian I thought it for a long time , but I

remove directory from @INC

2009-11-27 Thread Huub van Niekerk
Hi, Sorry if this is the wrong group. Using Fedora Linux, due to system changes the path to the Perl modules has changed. I've found that @INC contains the new path, but it's placed after the old path. So now I'm getting messages that modules can't be found in @INC anymore. The docs I've read

Re: a simple question about the line

2009-11-27 Thread Chris Charley
- Original Message - From: Dermot paik...@googlemail.com Newsgroups: perl.beginners To: John W. Krahn jwkr...@shaw.ca Cc: Perl Beginners beginners@perl.org Sent: Friday, November 27, 2009 12:29 PM Subject: Re: a simple question about the line 2009/11/27 John W. Krahn

Re: remove directory from @INC

2009-11-27 Thread Shawn H Corey
Huub van Niekerk wrote: Hi, Sorry if this is the wrong group. Using Fedora Linux, due to system changes the path to the Perl modules has changed. I've found that @INC contains the new path, but it's placed after the old path. So now I'm getting messages that modules can't be found in

Re: Separating DB operations out of program code

2009-11-27 Thread Steve Bertrand
Dermot wrote: 2009/11/26 Scott Pham scott.p...@gmail.com: Have you looked at DBIx::Class? I'd 2nd that. DBIx is the way forward. You should be looking to stop writing SQL statements and moving towards ORM. Try the example at

Re: A simple question about the Perl line

2009-11-27 Thread Majian
Thanks all . On Sat, Nov 28, 2009 at 3:00 AM, Randal L. Schwartz mer...@stonehenge.comwrote: Majian == Majian jian...@gmail.com writes: Majian Hi ,all: Majian I have a problem about this : Majian cat test: Majian 12 Majian 23 Majian 34 Majian 45 Majian 56 Majian 67 Majian I

biggest lottery winners

2009-11-27 Thread william kisman
password friends news.aol.com/nation/lottery/prizes New Email names for you! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/