Re: timings of perl subroutine with a program

2011-11-07 Thread a b
Thanks a ton!! Hats off to you for encouragement On Fri, Nov 4, 2011 at 5:05 PM, Shlomi Fish wrote: > Hi "a b", > > On Fri, 4 Nov 2011 15:18:00 +0530 > a b wrote: > > > apologize!! > > > > Can you help me to understand how async I/O can help me > > > > What's wrong with the resources in the UR

Re: timings of perl subroutine with a program

2011-11-04 Thread Shlomi Fish
Hi "a b", On Fri, 4 Nov 2011 15:18:00 +0530 a b wrote: > apologize!! > > Can you help me to understand how async I/O can help me > What's wrong with the resources in the URL I pointed you to? There's also http://en.wikipedia.org/wiki/Asynchronous_I/O which may be of interest. "The Gods help

Re: timings of perl subroutine with a program

2011-11-04 Thread a b
apologize!! Can you help me to understand how async I/O can help me Regards a b On Thu, Nov 3, 2011 at 9:06 PM, Shlomi Fish wrote: > Hello a b, > > please reply to the list as I specifically request in my signature. > (Wretched > gmail.com.) I'm CCing the list. > > On Thu, 3 Nov 2011 16:15:11

Re: timings of perl subroutine with a program

2011-11-03 Thread Shlomi Fish
Hello a b, please reply to the list as I specifically request in my signature. (Wretched gmail.com.) I'm CCing the list. On Thu, 3 Nov 2011 16:15:11 +0530 a b wrote: > Thanks Shlomi!! > > I am not sure about async I/O? > > any pointers about this one. It is new to me so far > See the links

Re: timings of perl subroutine with a program

2011-11-03 Thread Shlomi Fish
On Thu, 3 Nov 2011 06:49:36 +0100 timothy adigun <2teezp...@gmail.com> wrote: > Hi a b, > > a b wrote: > > > Hi all, > > > > i need to track down how much time each function is taking and anlyze if > > threads can help > > > > do we have any such function?? > > > > **You can use ** use Benchma

Re: timings of perl subroutine with a program

2011-11-02 Thread timothy adigun
Hi a b, a b wrote: > Hi all, > > i need to track down how much time each function is taking and anlyze if > threads can help > > do we have any such function?? > **You can use ** use Benchmark qw(:all) **. >From your CLI you can do: perldoc benchmark, or if you not like reading from the command

timings of perl subroutine with a program

2011-11-02 Thread a b
Hi all, i need to track down how much time each function is taking and anlyze if threads can help do we have any such function??

Re: perl_eval_pv function crashing when creating Perl subroutine from a char string in CPP program

2007-11-26 Thread Rob Dixon
Borse, Ganesh wrote: Hi, I am trying to create Perl subroutine in my C++ program, source code > of which is given below -- attempt to embed Perl in C++ program. I cannot use the perl script file for this because the expressions to be evaluated are stored in database & are to be lo

perl_eval_pv function crashing when creating Perl subroutine from a char string in CPP program

2007-11-25 Thread Borse, Ganesh
Hi, I am trying to create Perl subroutine in my C++ program, source code of which is given below -- attempt to embed Perl in C++ program. I cannot use the perl script file for this because the expressions to be evaluated are stored in database & are to be loaded at runtime. This pro

Re: Help with passing arrays to a Perl subroutine

2007-11-02 Thread Charles
On Nov 1, 1:37 pm, [EMAIL PROTECTED] (Jl Post) wrote: > On Nov 1, 9:35 am, [EMAIL PROTECTED] (Charles) wrote: > > > > > I have module from CPAN named Graph. I have created a subroutine for > > this to pass in two arrays; x-axis and y-axis into my Graph subroutine > > i.e. ; &graph( @Xvalues, @Yval

Re: Help with passing arrays to a Perl subroutine

2007-11-01 Thread Paul Lalli
On Nov 1, 6:35 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote: > Paul Lalli schreef: > > You need @{$xValues} and @{$yValues}. > > Thanks for the correction of my stupid typoes. In the line that came > after what you quote, and in the code that followed it, it is OK. > BTW, the {} are not needed. Not in t

Re: Help with passing arrays to a Perl subroutine

2007-11-01 Thread Dr.Ruud
Paul Lalli schreef: > Dr.Ruud: >> [EMAIL PROTECTED]: >>> sub graph >>> { >>> my @Xvalues = @{ $_[0] }; # remember to use "my"! >>> my @Yvalues = @{ $_[1] }; # remember to use "my"! >> >> A graph subroutine is not likely to change the input data, so there >> is no re

Re: Help with passing arrays to a Perl subroutine

2007-11-01 Thread Paul Lalli
On Nov 1, 4:53 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote: > [EMAIL PROTECTED] schreef: > > > sub graph > > { > > my @Xvalues = @{ $_[0] }; # remember to use "my"! > > my @Yvalues = @{ $_[1] }; # remember to use "my"! > > A graph subroutine is not likely to change the inp

Re: Help with passing arrays to a Perl subroutine

2007-11-01 Thread Dr.Ruud
[EMAIL PROTECTED] schreef: > sub graph > { > my @Xvalues = @{ $_[0] }; # remember to use "my"! > my @Yvalues = @{ $_[1] }; # remember to use "my"! A graph subroutine is not likely to change the input data, so there is no reason to copy the input data. m

Re: Help with passing arrays to a Perl subroutine

2007-11-01 Thread jl_post
On Nov 1, 9:35 am, [EMAIL PROTECTED] (Charles) wrote: > > I have module from CPAN named Graph. I have created a subroutine for > this to pass in two arrays; x-axis and y-axis into my Graph subroutine > i.e. ; &graph( @Xvalues, @Yvalues ); > > My confusions is: in my subroutine, I cannot treat the

Re: Help with passing arrays to a Perl subroutine

2007-11-01 Thread Paul Lalli
On Nov 1, 11:35 am, [EMAIL PROTECTED] (Charles) wrote: > Three days of head-banging An hour of FAQ and Documentation reading would have been more productive... > the Boss has my walking papers if I don't "get'er done"! > > I have module from CPAN named Graph. I have created a subroutine for

Re: Help with passing arrays to a Perl subroutine

2007-11-01 Thread Gunnar Hjalmarsson
Charles wrote: Three days of head-banging Unnecessary, since this is a FAQ. the Boss has my walking papers if I don't "get'er done"! I have module from CPAN named Graph. I have created a subroutine for this to pass in two arrays; x-axis and y-axis into my Graph subroutine i.e. ; &graph(

Help with passing arrays to a Perl subroutine

2007-11-01 Thread Charles
Help Three days of head-banging the Boss has my walking papers if I don't "get'er done"! I have module from CPAN named Graph. I have created a subroutine for this to pass in two arrays; x-axis and y-axis into my Graph subroutine i.e. ; &graph( @Xvalues, @Yvalues ); My confusions is: in

Re: PErl subroutine

2003-03-06 Thread Janek Schleicher
Sudarshan Raghavan wrote at Fri, 07 Mar 2003 10:53:31 +0530: >> sub cleanText{ >> my $cleanedText = @_; > > This is the problem, assigning an array to a scalar stores the number of > elements in the array (in this case the number of args to cleanText) in > the scalar ($cleanedText). Change this

Re: PErl subroutine

2003-03-06 Thread R. Joseph Newton
"Johnstone, Colin" wrote: > Gidday All, > > please help with my subroutine > Your call to this sub below offers a single string parameter--which happens to be multiline. > > sub cleanText{ > my $cleanedText = @_; #Since there is one element in @_, $cleanedText now has the value 1 or '1' > $

RE: PErl subroutine

2003-03-06 Thread Toby Stuart
> -Original Message- > From: Johnstone, Colin [mailto:[EMAIL PROTECTED] > Sent: Friday, March 07, 2003 4:11 PM > To: [EMAIL PROTECTED] > Subject: PErl subroutine > > > Gidday All, > > please help with my subroutine > > sub cleanText{ > my

Re: PErl subroutine

2003-03-06 Thread Sudarshan Raghavan
On Fri, 7 Mar 2003, Johnstone, Colin wrote: > Gidday All, > > please help with my subroutine > > sub cleanText{ > my $cleanedText = @_; This is the problem, assigning an array to a scalar stores the number of elements in the array (in this case the number of args to cleanText) in the scalar

PErl subroutine

2003-03-06 Thread Johnstone, Colin
Gidday All, please help with my subroutine sub cleanText{ my $cleanedText = @_; $cleanedText =~ s{}{}g; $cleanedText =~ s{}{}g; $cleanedText =~ s{<\/b>}{<\/span>}g; $cleanedText =~ s{Fittingly, the first student to arrive on the first day at Booligal Public's new era was Steven Spiers.