Re: 2 off in array count and index

2010-03-22 Thread Rene Schickbauer
jbl wrote: I am reading a directory and creating an array of .png file names. I know for a fact that there are 1025 png files in the folder With $count = @files I get 1027 With $last = $#files I get 1026 $files [0] = . $files[1] = .. "." is the current directory, ".." is the parent directory.

Re: ERROR: malformed header

2009-12-02 Thread Rene Schickbauer
Raheel Hassan wrote: HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * "malformed header from script. Bad header=\tPUBLIC "-//W3C//DTD XHTML 1.0: dashboard.pl, r

Re: cgi and perl database interaction

2009-12-01 Thread Rene Schickbauer
Hi! Now, the thing is that the PHP scripts also connect to the database and, presumably, uphold the connection over the duration of the session so as not to disconnect and reconnect continually when the user browses the website. My question is - is it possible to do the same thing with those

Re: Loading results (via ajax) from a CGI

2009-12-01 Thread Rene Schickbauer
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 get) and is expected to capture the

Re: Saving param after new recall of a cgi script

2009-12-01 Thread Rene Schickbauer
Marek wrote: Hi! How do I save the parameters from the first input? I tried everything, but there is nothing kept in my array. Do I have to save these parameters into an external file? You could also use Storable & Base64 to encode your data structure into a Base64 string. Put this string in