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
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
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
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
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
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/
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.
##
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
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/
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
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
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;
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
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
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
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
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
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
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
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
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
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
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
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
#!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
snip
Thanks Adriano .. thanks Bob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
$ 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
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;
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) ::: 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
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/
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
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
@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/
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
35 matches
Mail list logo