DBI - bind_param_inout

2010-10-25 Thread HACKER Nora
Hi list, I have a sql package which returns a value after execution. I figured out that, when calling this package from Perl, I need a bind parameter (http://search.cpan.org/~timb/DBI-1.615/DBI.pm#bind_param_inout) that this return can be saved into so that I can use it afterwards in my Perl progr

Re: Object introspection + adding method

2010-10-25 Thread Dr.Ruud
On 2010-10-23 18:50, David Favor wrote: Given an instantiated class object, what's the best way to add additional methods after instantiation. Specifically I'm working with qpsmtpd and desire to add a method is_spooled() to every session, so I can call if ($self->is_spooled) rather then is_spoo

Re: Print FH to file.

2010-10-25 Thread KA B
On Oct 23, 6:45 pm, shlo...@iglu.org.il (Shlomi Fish) wrote: > Hi KA B, > > On Friday 22 October 2010 21:12:29 KA B wrote: > > > I`m trying to get the filehandler 1 and 2 to print the result in one > > line. > > It's filehandles - not filehandlers. > > > The script i have made makes 2 lines. > > >

code help

2010-10-25 Thread saran
i am new to perl. please help me with this piece of code below. answer wat it prints is correct but the format has to adjusted...! program to convert Celsius to Fahrenheit ** #!/usr/bin/perl use warnings; use strict; p

perl code help

2010-10-25 Thread saran
i am new to perl. please help me with this piece of code below. answer wat it prints is correct but the format has to adjusted...! program to convert Celsius to Fahrenheit ** #!/usr/bin/perl use warnings; use strict; p

Re: perl code help

2010-10-25 Thread ashwin ts
Helo Saran, The reason why it was printed in the next line is because u have no used chomp function on $c.Chomp would remove unwanted new line characters. I added chomp($c) to ur code and it works fine.. i mean as hw u wanted.. pls find the same code below with chomp..

Re: perl code help

2010-10-25 Thread Shlomi Fish
Hi Saran, overall, pretty good code. On Monday 25 October 2010 18:21:31 saran wrote: > i am new to perl. please help me with this piece of code below. > answer wat it prints is correct but the format has to adjusted...! > program to convert Celsius to Fahrenheit >

Re: perl code help

2010-10-25 Thread Jim Gibson
On 10/25/10 Mon Oct 25, 2010 9:21 AM, "saran" scribbled: > i am new to perl. please help me with this piece of code below. > answer wat it prints is correct but the format has to adjusted...! > program to convert Celsius to Fahrenheit > **

Re: perl code help

2010-10-25 Thread C.DeRykus
On Oct 25, 9:21 am, simssa...@gmail.com (saran) wrote: > i am new to perl. please help me with this piece of code below. > answer wat it prints is correct but the format has to adjusted...! > program to convert Celsius to Fahrenheit >

Re: DBI - bind_param_inout

2010-10-25 Thread Shlomi Fish
Hi Nora, On Monday 25 October 2010 10:05:05 HACKER Nora wrote: > Hi list, > > I have a sql package which returns a value after execution. I figured > out that, when calling this package from Perl, I need a bind parameter > (http://search.cpan.org/~timb/DBI-1.615/DBI.pm#bind_param_inout) that > th

Re: code help

2010-10-25 Thread Shane Rogers
The quick answer would be because when you input $c it includes the newline character. You need to "chomp" it off, so add this to your script: chomp $c; Shane On Mon, Oct 25, 2010 at 10:35 AM, saran wrote: > i am new to perl. please help me with this piece of code below. > answer wat it prin

Re: DBI - bind_param_inout

2010-10-25 Thread Brandon McCaig
On Mon, Oct 25, 2010 at 3:27 PM, Shlomi Fish wrote: > 2. $bind_value is the variable where you want to supply and receive the value. > You need to take a reference to it so it can be modified. I imagine she knows this already, but I believe the stored procedure's parameter will need to be marked

Perl GD graph help

2010-10-25 Thread sync
Hi ,all : I am new to this , and I want to write the code to monit the CPU load situation and produce the graph about that . I tried to google something about that and found the perl module called GD::Graph can create the graph . But i met the problem that i don't know how to get the CPU loa

Re: Perl GD graph help

2010-10-25 Thread Shawn H Corey
On 10-10-25 09:20 PM, sync wrote: I tried to google something about that and found the perl module called GD::Graph can create the graph . But i met the problem that i don't know how to get the CPU load . GD::Graph creates graphs but for a real-time representation you should use Tk, http:/

Need help in running a script

2010-10-25 Thread Chaitanya Yanamadala
Hai I have developed an application in the perl and it is working fine. Now the problem is that everytime i need to run the script i need to login to the server and do it from there. Is there any possibility that if i send an http request from a browser automatically the script start running in th

Re: Perl GD graph help

2010-10-25 Thread sync
On Tue, Oct 26, 2010 at 10:08 AM, Shawn H Corey wrote: > On 10-10-25 09:20 PM, sync wrote: > >> I tried to google something about that and found the perl module called >> GD::Graph >> can create the graph . But i met the problem that i don't know how to >> get >> the CPU load . >> >> > GD::Grap