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 Stor
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 sets
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 throu
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 problem
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 inbui
Hello Forum,
I am in need to write a script which will count the number of files
and directories in a given directory. It will also record the
statistics of the directory within the main directory.
I have thought of a hash structure like
%hash = {
filecnt => value,
dircnt =>
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.
##
#!c:/perl/bin/perl.
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".
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_
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 the
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 PROTECTE
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 poin
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 t
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 da
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/p
>>> snip
Thanks Adriano .. thanks Bob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
#!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;
us
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 = mississ
> $ 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 t
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 unsubsc
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/
If () ::: if doesn't not fill the $_ variable with contents of
files first line automatically.
While () ::: while do fill the $_ to content of the files first
line automatically.
i.e
open FH, "name.txt" or die "cant open";
if (){
print "$_";
}
prints nothing
If we change if to while $_ is set to
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
@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/
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 an
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
31 matches
Mail list logo