calc function's executed time

2009-06-01 Thread practicalperl
Hello, What's the standard way to calculate a subroute's executed time in Perl? Thanks in advance. Jenn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: calc function's executed time

2009-06-01 Thread Raymond Wan
Hi Jenn, practicalp...@gmail.com wrote: What's the standard way to calculate a subroute's executed time in Perl? Thanks in advance. I don't know what's the standard way, but I use the times function and get the user time before and after the subroutine and then subtract.

Re: calc function's executed time

2009-06-01 Thread practicalperl
But I want the result to be millisecond not only be second. thanks. On Mon, Jun 1, 2009 at 5:01 PM, Raymond Wan r@aist.go.jp wrote: Hi Jenn, practicalp...@gmail.com wrote: What's the standard way to calculate a subroute's executed time in Perl? Thanks in advance. I don't know

Re: calc function's executed time

2009-06-01 Thread Owen
But I want the result to be millisecond not only be second. thanks. On Mon, Jun 1, 2009 at 5:01 PM, Raymond Wan r@aist.go.jp wrote: Hi Jenn, practicalp...@gmail.com wrote: What's the standard way to calculate a subroute's executed time in Perl? Thanks in advance. I don't know

Re: Regular Expressions with Incremented Variable Embedded

2009-06-01 Thread Dr.Ruud
Raabe, Wesley wrote: I am using regular expressions to alter a text file. Where my original file has three spaces to start a paragraph, I want to replace each instance of three spaces with a bracketed paragraph number, with a counter for paragraph numbers, pgf 1, pgf 2, pgf 3 etc. [...] The

Re: calc function's executed time

2009-06-01 Thread Jim Gibson
On 6/1/09 Mon Jun 1, 2009 1:58 AM, practicalp...@gmail.com practicalp...@gmail.com scribbled: Hello, What's the standard way to calculate a subroute's executed time in Perl? Thanks in advance. One popular way is to use the Benchmark.pm module. See 'perldoc Benchmark' or

Perl CGI: accessing a element value from the current form

2009-06-01 Thread Ravi Malghan
Hi: I have web page built using perl cgi. Generated page has the following element div id=userName style=display: none; name=userName admin /div Within the perl script is there a way to access the value of the element userName and assign it to a variable? Something along the lines

Re: Matching Question

2009-06-01 Thread John W. Krahn
Farrell, Patrick wrote: Thanks. What if I added numbers like this $msgText =~ s!(?= )([a-z,0-9]+)(?= )!bold$1/bold!g; Did you really want to include a comma as part of that character class? But I didn't want a string of only numbers? In the strings I waned, I know the first character

Re: Perl CGI: accessing a element value from the current form

2009-06-01 Thread Jim Gibson
On 6/1/09 Mon Jun 1, 2009 1:40 PM, Ravi Malghan rmalg...@yahoo.com scribbled: Hi: I have web page built using perl cgi. Generated page has the following element div id=userName style=display: none; name=userName admin /div Within the perl script is there a way to access the value of

RE: Perl CGI: accessing a element value from the current form

2009-06-01 Thread David Christensen
Ravi Malghan wrote: Hi: I have web page built using perl cgi. Generated page has the following element div id=userName style=display: none; name=userName admin /div Within the perl script is there a way to access the value of the element userName and assign it to a variable? Something along