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 > admin > > 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 > $currentUser = ; If I understand y

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" scribbled: > > Hi: I have web page built using perl cgi. Generated page has the following > element > > admin > > Within the perl script is there a way to access the value of the element > userName and assign it to a variable? > Something a

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]+)(?= )!$1!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 would not be

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 admin 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 $currentUser = ; Thanks Ravi -- To unsubscribe, e-ma

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" 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

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, , , etc. [...] The WHILE loop that I'

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 wrote: >> >> Hi Jenn, >> >> >> practicalp...@gmail.com wrote: >>> >>> What's the standard way to calculate a subroute's executed time in >>> Perl? >>> Thanks in advance. >> >> >>

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 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 what's t

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. http://perldoc.p

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/