Problems in dates and time additions by one minute.

2011-12-18 Thread Raheel Hassan
-- Forwarded message -- From: Raheel Hassan raheel.has...@gmail.com Date: Sun, Dec 18, 2011 at 10:50 PM Subject: Re: beginners Digest 19 Dec 2011 01:53:29 - Issue 4280 To: beginners-digest-h...@perl.org, John W. Krahn jwkr...@shaw.ca Thanks John, Yes i do not have year field

Problems in dates and time additions by one minute.

2011-12-17 Thread Raheel Hassan
Hi, I have 3 files (these are the log files of the system). These files have date formate like this (Dec 5 09:02:01). I need to read these files from from the first date(Dec 5 09:02:01) till the last date (Dec 17 17:34:02) in the file. Then i have to search a word between the time difference of

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-26 Thread Raheel Hassan
, 2010 at 10:04 PM, Shlomi Fish shlo...@iglu.org.il wrote: Hi Raheel, Sorry for the late response. On Friday 23 Apr 2010 19:04:20 Raheel Hassan wrote: Hi Shlomi and Owen, On Thu, Apr 22, 2010 at 5:37 PM, Shlomi Fish shlo...@iglu.org.il wrote: 2.6.27.24-2 is the kernel version (which

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-23 Thread Raheel Hassan
Hi Shlomi and Owen, On Thu, Apr 22, 2010 at 5:37 PM, Shlomi Fish shlo...@iglu.org.il wrote: 2.6.27.24-2 is the kernel version (which is kinda old - I'm using 2.6.33.2). I need the Mandriva version - please do: [shell] shlomi:~$ cat /etc/mandriva-release Mandriva Linux release 2010.1 (Cooker) for

Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Raheel Hassan
-- Forwarded message -- From: Raheel Hassan raheel.has...@gmail.com Date: Wed, Apr 21, 2010 at 3:55 PM Subject: ExtUtils-Makemaker comilation problems. To: beginners@perl.org Hi, When i am trying to install ExtUtils i have these errors are coming. I am trying ti install

Re: Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Raheel Hassan
*I have only these files. [r...@localhost /]# find -name 'CORE'* ./usr/lib/perl5/5.10.1/i386-linux-thread-multi/CORE ./usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE [r...@localhost /]# cd /usr/lib/perl5/5.10.1/i386-linux-thread-multi/CORE [r...@localhost CORE]# ls config.h git_version.h

Re: Need help to resove..... ExtUtils-Makemaker comilation

2010-04-22 Thread Raheel Hassan
hope that you will understand my problem. On Thu, Apr 22, 2010 at 1:52 PM, Shlomi Fish shlo...@iglu.org.il wrote: Hi Raheel! On Thursday 22 Apr 2010 14:21:20 Raheel Hassan wrote: -- Forwarded message -- From: Raheel Hassan raheel.has...@gmail.com Date: Wed, Apr 21, 2010

ExtUtils-Makemaker comilation problems.

2010-04-21 Thread Raheel Hassan
Hi, When i am trying to install ExtUtils i have these errors are coming. I am trying ti install it in Mandriva. Can any one can give be the clue. Thanks in advance. *[r...@localhost ExtUtils-MakeMaker-6.56]# perl Makefile.PL* Writing Makefile for ExtUtils::MakeMaker *[r...@localhost

How to install SNMP_Session.pm

2009-12-23 Thread Raheel Hassan
Hi, I need to install SNMP_Session.pm in Fedora core 12, can any one guide me how i can install this package and from where i get this. It is working in my ubuntu machine but in fedora i am unable to find. Regards, Raheel.

Re: How to install SNMP_Session.pm

2009-12-23 Thread Raheel Hassan
from where to get this package. That is the problem that i am facing at the moment... On Wed, Dec 23, 2009 at 3:11 PM, Erez Schatz moonb...@gmail.com wrote: 2009/12/23 Raheel Hassan raheel.has...@gmail.com: Hi, I need to install SNMP_Session.pm in Fedora core 12, can any

ERROR: malformed header

2009-12-02 Thread Raheel Hassan
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, referer:

ERROR: malformed header

2009-12-02 Thread Raheel Hassan
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, referer:

ERROR Details of : malformed header

2009-12-02 Thread Raheel Hassan
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, referer:

Problems in POSIX

2009-11-25 Thread Raheel Hassan
Hello, 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 WNOHANG? my $message = $object - receive($id,$length,IPC_NOWAIT);

Re: Need some explanation about these lines.

2009-10-16 Thread Raheel Hassan
with https:// 2- IS there any tool by which i can run these lines to check the output. On Thu, Oct 15, 2009 at 4:26 PM, Rob Coops rco...@gmail.com wrote: On Thu, Oct 15, 2009 at 2:55 PM, Raheel Hassan raheel.has...@gmail.comwrote: Hi, I will be very thankful if someone explains under given code

Need some explanation about these lines.

2009-10-15 Thread Raheel Hassan
Hi, I will be very thankful if someone explains under given code. #- CGI Module -- use CGI; $q = CGI-new(); my ($myself) = split(/\?/,$q-self_url); #from where it will call the url? my @base_url = split(/\//, $myself); #what is \ / my $base_url =

Re: Need explanation about this code.

2009-10-09 Thread Raheel Hassan
:54 PM, Jim Gibson jimsgib...@gmail.com wrote: On 10/8/09 Thu Oct 8, 2009 9:00 AM, Raheel Hassan raheel.has...@gmail.com scribbled: Hello, I have problems in understanding $...@$ use ? 1- my $ref = $$temp_sth - fetchall_arrayref({}); for(my $i=0; $i = $...@$ref}; $i

Re: Need explanation about this code.

2009-10-09 Thread Raheel Hassan
Thanks Rob, Jim and all others who helped me in explaining this code. On Fri, Oct 9, 2009 at 1:06 PM, Rob Coops rco...@gmail.com wrote: On Fri, Oct 9, 2009 at 9:58 AM, Raheel Hassan raheel.has...@gmail.comwrote: Thanks Jim for a nice reply, could you explain what push(@$temp_table,$ref-[$i

Need explanation about this code.

2009-10-08 Thread Raheel Hassan
Hello, I have problems in understanding $...@$ use ? 1- my $ref = $$temp_sth - fetchall_arrayref({}); for(my $i=0; $i = $...@$ref}; $i++) { push(@$temp_table,$ref-[$i]);} Can some one explain the under given function. 2- sub buildSensorsHashtable { my ($dbh) = @_; my

Wants to migrate from one machine to another.

2009-09-29 Thread Raheel Hassan
Hello, We have one software which is installed at one machine. The software was developed by many developers(students) as it was used in multiple projects in the lab, all the code is written in perl. Now we want to do the backup of that software for that we want to make one copy running on a new

Re: Wants to migrate from one machine to another.

2009-09-29 Thread Raheel Hassan
: http://search.cpan.org/~elliotjs/Module-Used-v1.2.0/lib/Module/Used.pmhttp://search.cpan.org/%7Eelliotjs/Module-Used-v1.2.0/lib/Module/Used.pm 2009/9/29 Raheel Hassan raheel.has...@gmail.com: Hello, We have one software which is installed at one machine. The software was developed

Re: Wants to migrate from one machine to another.

2009-09-29 Thread Raheel Hassan
Could you please write down the steps how to do that, I am using Ubuntu jaunty. On Tue, Sep 29, 2009 at 4:00 PM, Shawn H Corey shawnhco...@gmail.comwrote: Raheel Hassan wrote: Yes we know but the number of scripts is in hundreds, so it is very time consuming to identify the modules

Re: Need some explanation.

2009-08-27 Thread Raheel Hassan
*About quote():* Many thanks for your reply, But what is the difference in; select * from tablesname where x = ''; drop table tablename; --'; and select * from tablesname where x = '\'; drop table tablename; --'; both the statements seems to be SQL injection attack. What is thet role that quote

Need some explanation.

2009-08-26 Thread Raheel Hassan
In CPAN documentation of DBI, i have problems in understanding the use, i read the given text many times but it is not explained in detail, can any one suggest me some other sites where i can get details and clear expalnation of the under given functions. Also are there any other sites for

Fwd: This code is not giving the required output.

2009-08-19 Thread Raheel Hassan
-- Forwarded message -- From: Raheel Hassan raheel.has...@gmail.com Date: Wed, Aug 19, 2009 at 2:48 PM Subject: This code is not giving the required output. To: beginners-h...@perl.org Hello, I have problems in executing the under given code. I need to restart my database

Re: This code is not giving the required output.

2009-08-19 Thread Raheel Hassan
When i am running this command *service mysql start* at command line it gives OK but when calling it in perl script it print *$mysqld: unrecognized service* in the output file. Therefore the variable result gets NOK and it prints NOK. This does not work because it should print OK. On Wed, Aug 19,

Re: This code is not giving the required output.

2009-08-19 Thread Raheel Hassan
PM, Shawn H. Corey shawnhco...@gmail.comwrote: Raheel Hassan wrote: When i am running this command *service mysql start* at command line it gives OK but when calling it in perl script it print *$mysqld: unrecognized service* in the output file. Therefore the variable result gets NOK

problems in installing DBD::msql

2009-07-27 Thread Raheel Hassan
I am trying to install DBD::msql i run the under given commandn *$ sudo perl -MCPAN -e 'install DBD::mysql'* CPAN: Storable loaded ok (v2.18) Going to read /home/raheel/.cpan/Metadata Database was generated on Sun, 26 Jul 2009 10:26:58 GMT Running install for module 'DBD::mysql' CPAN:

Re: Need some explanation about these lines.

2009-04-23 Thread Raheel Hassan
Please see below, for some more questions. On Tue, Apr 21, 2009 at 9:22 PM, Chas. Owens chas.ow...@gmail.com wrote: On Tue, Apr 21, 2009 at 12:37, Raheel Hassan raheel.has...@gmail.com wrote: Thanks a lot for your explanation. For adding support of CGI, SSL and MySQL in perl, what modules

Re: Need some explanation about these lines.

2009-04-23 Thread Raheel Hassan
Thanks for your reply, please look below for more queries. On Thu, Apr 23, 2009 at 12:27 PM, Chas. Owens chas.ow...@gmail.com wrote: On Thu, Apr 23, 2009 at 05:45, Raheel Hassan raheel.has...@gmail.com wrote: snip Can you please explain IO::Socket::SSL and DBD::mysql why we write in our

Re: how to add support of Msql and CGI in Apache

2009-04-21 Thread Raheel Hassan
Please see below for my solution. On Thu, Apr 16, 2009 at 3:52 PM, Dermot Paikkos dermot.paik...@sciencephoto.co.uk wrote: I am following these instructions, http://www.ubuntugeek.com/how-to-install-apache2-webserver-with-phpcgi-a

Re: Need some explanation about these lines.

2009-04-21 Thread Raheel Hassan
where it is not mentioned clearly. Kindest Regards, Raheel. On Thu, Apr 16, 2009 at 6:17 PM, Chas. Owens chas.ow...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:14, Raheel Hassan raheel.has...@gmail.com wrote: Hello, I have seen some Perl scripts where some times these lines are mentioned

Need some explanation about these lines.

2009-04-16 Thread Raheel Hassan
Hello, I have seen some Perl scripts where some times these lines are mentioned in the begining of the script can any body explain these lines. *Script-1* use DBI; # What is been called here. use Test::DB::DBAccess; use Test::DB::DBOps; *Script-2* package

how to add support of Msql and CGI in Apache

2009-04-14 Thread Raheel Hassan
Hello, I am facing problems in executing cgi programs, on Apache web server, can any body tell me how i can configure my Apache server so that it can support CGI and Msql. I also wanted to enable ssl support in the Apache server. Thanks in advance. Regards, Raheel.

how to add support of Msql and CGI in Apache.

2009-04-13 Thread Raheel Hassan
Hello, I am facing problems in executing cgi programs, on Apache web server, can any body tell me how i can configure my Apache server so that it can support CGI and Msql. I also wanted to enable ssl support in the Apache server. Thanks in advance. Regards, Raheel.

Help needed in understanding some lines of code.

2009-03-19 Thread Raheel Hassan
Can anybody explains this piece of code, i have difficulties in understanding it, my $errorlog = /var/log/controler.log; initLanguage($language); launchCbox(); sub launchCbox { $scr = Term::ScreenColor-new; $scr-clrscr(); my ($mode) = @_; my $error = 0;

Need some information about perl documentation.

2009-02-12 Thread Raheel Hassan
Hello to All the members, I am a new member to this group, i am working on my research project where i have to work using Perl. The first phase of the project is written by many people and they have not done any documentation with the code. When i tried to understand the code i did not get any

Need some information about perl documentation.

2009-02-12 Thread Raheel Hassan
Hello to All the members, I am a new member to this group, i am working on my research project where i have to work using Perl. The first phase of the project is written by many people and they have not done any documentation with the code. When i tried to understand the code i did not get any