Re: Retrieving Dataset along with REcordsets

2008-09-12 Thread jeevs
On Sep 11, 7:12 pm, [EMAIL PROTECTED] (Jeevs) wrote: I understand a $stmt-execute($sql) will return me the recordset and I can fetch the records using fetchrow_hashref and other methods Howeveer I have a scenario where I get multiple datasets, ( Reason : My Stored Procedure calls other

Retrieving Dataset along with REcordsets

2008-09-11 Thread jeevs
I understand a $stmt-execute($sql) will return me the recordset and I can fetch the records using fetchrow_hashref and other methods Howeveer I have a scenario where I get multiple datasets, ( Reason : My Stored Procedure calls other Stored PRocedures internally.) with individual record

Re: Debugger in PErl

2008-04-14 Thread jeevs
On Apr 11, 6:08 pm, [EMAIL PROTECTED] (Jeevs) wrote: Thanks for the pointer Jenda And Chas.. A little problem here... I was able to debug a sample script from command line... However when i used the !#c:/perl5.10/bin/perl.exe -d:pktdb to debug cgi scripts through browser nothing happens

Re: Debugger in PErl

2008-04-11 Thread jeevs
Thanks for the pointer Jenda And Chas.. A little problem here... I was able to debug a sample script from command line... However when i used the !#c:/perl5.10/bin/perl.exe -d:pktdb to debug cgi scripts through browser nothing happens and the script just does nothing except throwing the

Debugger in PErl

2008-04-10 Thread jeevs
Is there a good debugger for perl. I have an application running on Ubuntu , with apache and mod perl along with mysql. and we are into reverse engineering the product. And need to debug the code. Is there any debugger for perl other than the internal debugger which we can use other than perl

Re: Email from windows

2008-02-07 Thread jeevs
Thanks everyone.. I figured the smtp server for my domain which I was using incorrectly.. Thanks for it -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Email from windows

2008-02-06 Thread jeevs
I want to send an email from my windows machine how can I do that with the following code which throws an error can't call method mail from an undefined value. I guess it is the host name that I am providing is wrong ... Where can I get the SMTP server. ##

Re: Check if a module is installed properly

2007-11-16 Thread jeevs
I really m not getting what exactly I was doing wrong. But the next time I tried the same thing to see the version i.e perl - MNet::SSH::Perl -e print $Net::SSH::Perl::VERSION , it worked... I am so thankfull for your valuable comments. - Nexis http://startperl.blogspot.com -- To

Re: Check if a module is installed properly

2007-11-14 Thread jeevs
Thanks for the comment Sir. I was using some less efficient way to check if the module was installed. - Nexis http://startperl.blogspot.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Check if a module is installed properly

2007-11-13 Thread jeevs
Hi Forum, It happened that i tried installing Net::SSH::Perl from cpan. After a long haul and installing most of the dependencies it happend that installation was aborted in between with the message. ## Failed Test Stat Wstat Total Fail Failed

Re: Date addition-reg

2007-11-12 Thread jeevs
On Oct 23, 12:15 pm, [EMAIL PROTECTED] (Jeevs) wrote: On Oct 23, 2:19 pm, [EMAIL PROTECTED] wrote: Hi Thaks for ur valuable info.. my code is my $total_nights=3; $total_nights = 0.$total_nights if ((!($total_nights =~ /^0/)) ($total_nights 10)); my $start_date=2008

Re: Date addition-reg

2007-10-23 Thread jeevs
On Oct 23, 2:19 pm, [EMAIL PROTECTED] wrote: Hi Thaks for ur valuable info.. my code is my $total_nights=3; $total_nights = 0.$total_nights if ((!($total_nights =~ /^0/)) ($total_nights 10)); my $start_date=2008-03-24; my ($year,$mon,$day) = split/-/,$start_date;

Re: Displaying a Link on A Web PAge with image/png header.

2007-09-28 Thread jeevs
Thanks all for the replies... Mathew I will look into the suggestion Rob the data is also dynamically generated before i call the subroutine which displays the graph. Dr.Rudd your suggestion works well but I dont want to make another script for graph generation. My web page handles all

Displaying a Link on A Web PAge with image/png header.

2007-09-26 Thread jeevs
Hi Forum!!! I want to plot a graph on a web page. I am using the GD::Graph module and can successfully plot the graph. The graph is displayed on the web page with the following code. ... ... print content-type: image/$graph_format\n\n; my $img_obj = $graph-plot([EMAIL

Re: Cant Display the image...

2007-09-07 Thread jeevs
Thanks Gunnaar.. Problem resolved... created a directory called images in www as said before and just added the alias directived to the httpd.config to access the files stored in images directory... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Cant Display the image...

2007-09-06 Thread jeevs
Hi All, I am using the GD::Graphs to generate a graph. I am storing the file on the server and then displaying the same. my code looks like. .. ... ... $gd = $graph-plot([EMAIL PROTECTED]) or die $graph-error; open(IMG, 'file.png') or die $!; binmode IMG; print IMG $gd-png; print

Re: Cant Display the image...

2007-09-06 Thread jeevs
Ok.. here is the update. Earlier i was trying it on windows.. now i m using linux but still the same problem 1) I created a directory called images under /var/www 2) gave it the permission so that i cud be able to write to it 3) i modified my code to ### .. ... my

Re: Cant Display the image...

2007-09-06 Thread jeevs
Ok.. here is the update. Earlier i was trying it on windows.. now i m using linux but still the same problem 1) I created a directory called images under /var/www 2) gave it the permission so that i cud be able to write to it 3) i modified my code to ### .. ... my

Re: Cant Display the image...

2007-09-06 Thread jeevs
thanks Gunnar . David I used the code on unix machine. But now the problem is that i am creating file.png file at location / var/www/images/file.png now how to display the same as the default path equals to i.e the root is /var/www/html/ how to refer to the images directory in this case

Unable to install DBD::mysql

2007-09-04 Thread jeevs
can spomeone help... i am trying to install DBD-mysql-4.00 but get the following error while running the make command... Earlier while running the makefile i have use set EVC{lang} = 'C' as suggested... Any directions will be appreciated ### dbdimp.c:4527: dereferencing

Re: parsing a log file by date

2007-08-01 Thread jeevs
Before reading the above comments I used the localtime function of Time::Local to convert the dates into epochs and then comparing numerically. But thanks as i was not knowing that the strings i.e 2007-12-01 and 2007-12-02 can be compared using the string operators for dates. Can anyone point me

parsing a log file by date

2007-07-31 Thread jeevs
Hello forum. I am here with a logical problem rather. I have a log file which will be huge in and can run in MBs. log file structure is like 2007-08-09,0,0,0,0,0,0 2007-08-11,0,0,0,0,0,1 2007-08-11,0,0,0,0,0,1 2007-08-12,0,0,0,2,3,2 What I am supposed to do is show the data between particular

array assignement

2007-07-23 Thread jeevs
Hi forum! I just wanted to know what does the following line do @{$args{owner}} = qw(hero wierd); lets assume $args{owner} = 'sachin'; Then it would mean @{sachin} = qw(hero wierd); what would {sachin} stand for does it mean an hash refernce or something else. I am lost. Can someone explain

CPU/Memory usage of a process on Windows machine

2007-06-29 Thread jeevs
Greetings I am trying to find CPU and memory usage on a windows machine and i was able to get through memory usage using Win32::Process::Info module's GetProcInfo function. This code may be helpfull to others which calculate the memory usage of a particular process on windows

Exporter query

2007-06-06 Thread jeevs
#!c:/perl/bin/perl.exe #Calculator.pm package calc; use strict; use warnings; use Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(add); sub add { my ($num1,$num2) = @_; $num1+$num2; } 1; #!c:/perl/bin/perl.exe #adcalculator.pl use strict; use warnings; use Calculator; my

Re: Exporter query

2007-06-06 Thread jeevs
snip Thanks Adriano .. thanks Bob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: zero width lookahead match

2007-05-31 Thread jeevs
$ perl -wle' $string = abc; while ($string =~ /(.*?)/g) { print pos($string), : , $1;} ' 0: 1: a 1: 2: b 2: 3: c 3: Can someone explain the working of the g modifier since my knowledge of using g was to use it for substituting globally... Here i get what paul is trying to explain

Re: did I get greedy quantifiers wrong ?

2007-05-31 Thread jeevs
On May 31, 3:02 pm, [EMAIL PROTECTED] (Sharan Basappa) wrote: I seem to be having some conceptual problem with greedy quantifiers .. My understanding is that it matches as much as follows while still allowing rest of the regex to match. But look at the following example : $str = mississippi;

Re: if (FH) VS while (FH)

2007-05-30 Thread jeevs
On May 29, 7:39 pm, [EMAIL PROTECTED] (Jeevs) wrote: Yeah i tested it and it works manuaaly (dats the reason i used the word automatically in my previous post) Was wondering why dat dosnt work Thanks TOM for the reply Thanks Paul That really helped.. -- To unsubscribe, e-mail

if (FH) VS while (FH)

2007-05-29 Thread jeevs
If (FH) ::: if doesn't not fill the $_ variable with contents of files first line automatically. While (FH) ::: while do fill the $_ to content of the files first line automatically. i.e open FH, name.txt or die cant open; if (FH){ print $_; } prints nothing If we change if to while $_ is set

Re: if (FH) VS while (FH)

2007-05-29 Thread jeevs
Yeah i tested it and it works manuaaly (dats the reason i used the word automatically in my previous post) Was wondering why dat dosnt work Thanks TOM for the reply -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Accessing hash

2007-05-28 Thread jeevs
why is it that when i write my %hash = (jeevan='ingale', sarika='bere' ); my @arr = @hash{jeevan, sarika}; print @arr; prints ingale bere can someone explain me how an @sign is used and what exactly goes in the secongline of thecode. contrary when i try something like replacing the @ sign

acccesing an hash

2007-05-28 Thread jeevs
my %hash = (jeevan='Ingale', Sarika ='Bere'); my @star = @hash{jeevan, Sarika}; print @star; this prints ingale and bere but when i write my %hash = (jeevan='Ingake', Sarika ='Bere'); my @star = %hash{jeevan, Sarika}; print @star; its an error.. Can someone explain or atleast point me to any

Accessing hash

2007-05-28 Thread jeevs
@hashi = @hash{qw (jeevan, sarika)}; print @hashi; this gives me the values of keys jeevan and sarika.. how does this work ... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Accessing hash

2007-05-28 Thread jeevs
On May 28, 11:35 am, [EMAIL PROTECTED] (Jeevs) wrote: @hashi = @hash{qw (jeevan, sarika)}; print @hashi; this gives me the values of keys jeevan and sarika.. how does this work ... ok i got it ... and I think i was not clear in my query... I was expecting an hash slice to be %hash{qw(jeevan