Re: Combination of "while" and "for" delivers wrong result from array

2002-08-04 Thread Connie Chan
> > while () { > my @rows= split (/;/); > for my $i (0 ..$#rows) >{ >print $q->a({href=> "/cgi-bin/details.cgi?nr=$i"}, >escapeHTML($rows[0]))."\n"; >} >close ADDRESSLIST; You have closed the file handle here, but the

Re: Any Mac users out there?

2002-08-04 Thread drieux
On Friday, August 2, 2002, at 06:02 , Jimmy George wrote: > Can any astute Mac user advise me on how to check a cgi code that writes > to a file to do that with the command-r function on my home machine with > MacPerl? Off line of course as this is the pre-alpha stage. are you doing this in pre

Tk in Windows?

2002-08-04 Thread Octavian Rasnita
Hi all, Can the Tk module be used in Windows? I've installed using ppm and if I put "use Tk;" it give me the following error in the log: Can't locate loadable object for module Tk::Event in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:/Perl/site/lib/Tk.pm line 13 This Event module

Re: Help Needed: Debugging web applications in perl+cgi+php+mysql on apache+ssl

2002-08-04 Thread zentara
On Sun, 4 Aug 2002 00:17:38 -0700, [EMAIL PROTECTED] (Saurabh) wrote: >(b)The second solution is to use a perl debugger called ptkdb. I am not sure how much >useful is this ptkdb in debugging a web appplication. This is your best bet. You need to deal with the xhost issue when try to do it over

Re: Sort of questions about CGI

2002-08-04 Thread zentara
On Sun, 4 Aug 2002 02:46:46 +0800, [EMAIL PROTECTED] (Connie Chan) wrote: >>"many detailed questions on CGI " You need to search thru the RFC's for cgi Here's a start: http://cgi-spec.golux.com/ http://www.perl.org/CGI_MetaFAQ.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Combination of "while" and "for" delivers wrong result from array

2002-08-04 Thread Richard Krause
Hi all The following script displays a overwiev from a addresslist with links to the details of each entry. With an iteration I create the no. of each row that is being handed over to details.cgi. It all works perfectly well apart from the fact that the html links that get displayed all have got

Any Mac users out there?

2002-08-04 Thread Jimmy George
Hello World Can any astute Mac user advise me on how to check a cgi code that writes to a file to do that with the command-r function on my home machine with MacPerl? Off line of course as this is the pre-alpha stage. And as a point of interest, the 'Camel book' on perl did refer to Macs but the

Re: Help Needed: Debugging web applications in perl+cgi+php+mysql on apache+ssl

2002-08-04 Thread Connie Chan
use strict use warnings Will help you to save most of debug time. And. perhaps you still have option C. Thaz, if you need some quick test, you can make the form data becomes uri escaped. or boundary based. So you can test it inline. with warn, and die. you will really what error is happened at