Installation of mod_perl and apache on windows

2006-08-21 Thread Deepak Mallya
Hi everyone, Can anyone tell me how to install mod_perl and Apache on windows.I am having problems when I run the makefile.pl file.It asks me the path and when I enter it I get error.I tried entering it in every possible way considering that '\' is escape for perl but I am still no

Getting internal server error when I run a simple CGI script

2006-08-21 Thread Deepak Mallya
Hi, I am trying to run a simple Perl CGI script and I get the following error..Can anyone help me on this   Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] an

Doubt in References and complex datastructures

2006-12-11 Thread Deepak Mallya
Hi, When I try to use complex data structures I get an error saying Use of uninitialized value in string at C:\Documents and Settings\deepm\My Documents\practice.pl line 29, line 1. The line of code is as follows:- for ($i=0;$i<=$#terms;$i++) { $wordlistref->{$terms[$i]}->{"postingsref"}->{"

Re: Doubt in References and complex datastructures

2006-12-11 Thread Deepak Mallya
'termfreq' => 1 } } } } On 12/11/06, Michael Peters <[EMAIL PROTECTED]> wrote:

About PHP configuration

2006-12-16 Thread Deepak Mallya
Hi, I am new to PHP..am tryin to configure PHP and am havin few problems.Ihave setup the http.conf and php.ini with the coresponding entries and when I call http://localhost/ it works.But I get "page not found" when I try to run http://localhost/phpinfo.php with these line in it . Can anyone

installing perl modules(.pm)

2007-03-04 Thread Deepak Mallya
Hi, I am trying to install the Devel::Size perl module in Unix.I have installed it but when I try to include it in my program using use lib '/pathname' I get the error as follows:- Can't locate Devel/Size.pm in @INC (@INC contains: /home/002/d/dp/dpm052000/lib /usr/lib/perl5/site_perl/5.8.6/

Converting a String of bits into a binary number in perl?

2007-03-04 Thread Deepak Mallya
Hi, Can anyone tell me how do I convert a String of bits into a binary number in Perl For eg:- $a="100"; I want to convert this into perl's interpretation of binary no ie $a=0b100 Thanks, Deepak

Re: Converting a String of bits into a binary number in perl?

2007-03-06 Thread Deepak Mallya
the final value should be a binary value(datatype) not a string of binary digits. eg:- if we do $a=0b."100" this becomes a string and when we take the length($a) it gives us the size in bytes of a integer (here it would be 4 bytes) but if we do $a=0b100 its a binary

Using Persistent Data Structures in Perl

2007-04-21 Thread Deepak Mallya
Hi all, Can anyone tell me how to use Persistent Data structures in Perl.ForEg:- I have a Hash data structure built in one program and I want it to be in memory after the termination of the first program so that I can access it from another program.Can anyone help me on this? Thanks, Deepa

Using Persistent Data Structures between a webprogram(CGI) and Perl program

2007-04-22 Thread Deepak Mallya
Hi, Is there a way in which CGI programs could use the Data structures created by another perl program.I tried using Storable and it works well between two perl programs which are run on the terminal..but I want to use the Persistent data structure in my CGI program(using http)..when I do thi

Error while using Storable.pm for persistent Data Structures from Perl(CGI script)

2007-04-23 Thread Deepak Mallya
Hi , I am getting the following error when I use Storable.pm in a CGI script.Do I need a different version?Also is there any other package for using Persistent Data Structures in CGI scripts..I am able to work with Storable.pm successfully from 2 Perl programs..but when I use a CGI(perl scri

Re: Error while using Storable.pm for persistent Data Structures from Perl(CGI script)

2007-04-23 Thread Deepak Mallya
Clinton, I tried it ..It gives me this at the line I added warn. Warning: something's wrong at newprocessquery.pl line 24. Undefined subroutine &main::retrieve called at newprocessquery.pl line 25. I tried printing @INC after adding the use lib..It gives me the path at the front of @INC ..i dont