Low performance of a Perl program

2001-10-05 Thread Rogério Brito
t; "); $j--; } while ($i > 0) { # seq. $t acabou push(@alin_s, $s[$i]); push(@alin_t, "-"); push(@alin_c, " "); $i--; } print reverse(@alin_s), "\n"; print reverse(@alin_t), "\n"; print reverse(@alin_c), "\n"

Re: multiple entry/exit points

2001-07-12 Thread Rogério Brito
to make it as strict as possible. []s, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogério Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: Code review

2001-07-10 Thread Rogério Brito
chapter of "Programming Perl, 2nd ed" yet). []s, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogério Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: timer/display-DISPLAY WORKING;THANKS

2001-07-10 Thread Rogério Brito
. []s, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogério Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: How do I determine number of matches in a regex?

2001-06-24 Thread Rogério Brito
On Jun 24 2001, Michael Fowler wrote: > On Sun, Jun 24, 2001 at 07:13:47PM -0300, Rogério Brito wrote: > > 1 - How does the Perl grammar interprets the following statements: > > > > $n = () = m/string/g; > > > > In particular, is "

Re: How do I determine number of matches in a regex?

2001-06-24 Thread Rogério Brito
lgorithm -- which I read somewhere that Perl uses when dealing with simple patterns). Any help will be very much appreciated. Thank you very much, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogério Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: variable losing it's value

2001-06-19 Thread Rogério Brito
ith "local", AFAIK. []s, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogério Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: SunEd Perl Class - Day 1

2001-06-11 Thread Rogério Brito
e that another reason why we can't interpolate a hash in a string may be related to it's limited usefulness, since the order of listing it may not be deterministic. []s, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=