RE: Code for review

2001-08-17 Thread Peter Scott
]] > > Sent: Tuesday, August 14, 2001 16:13 > > To: Yacketta, Ronald; Beginners (E-mail) > > Subject: RE: Code for review > > > > > > At 01:38 PM 8/14/01 -0400, Yacketta, Ronald wrote: > > > > > > $regex = 'join ('|', keys %lookF

RE: Code for review

2001-08-16 Thread Yacketta, Ronald
t SWITCH; } } } Regards, Ron > -Original Message- > From: Peter Scott [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 14, 2001 16:13 > To: Yacketta, Ronald; Beginners (E-mail) > Subject: RE: Code for review > > > At 01:38 PM 8/14/

Re: Code for review

2001-08-14 Thread Thomas A . Lowery
On Tue, Aug 14, 2001 at 10:33:31AM -0400, Yacketta, Ronald wrote: > > Please be open and honest, I am looking to speed up the script and make it > more efficient as well > > sub get_oracle_time () { > # Lets get the time it takes to connect to oracle > my ( $key, $value ); > $orati

RE: Code for review

2001-08-14 Thread Peter Scott
At 01:38 PM 8/14/01 -0400, Yacketta, Ronald wrote: > > $regex = 'join ('|', keys %lookFor); > > if (/($regex)/o) { > ># Now switch on $1 for your specific sub-tests like /Factory/ etc > > } > > > >could you kindly elaborate some on this part? >I thought one could only "switch" on numeric valu

RE: Code for review

2001-08-14 Thread Yacketta, Ronald
> $regex = 'join ('|', keys %lookFor); > if (/($regex)/o) { ># Now switch on $1 for your specific sub-tests like /Factory/ etc > } > could you kindly elaborate some on this part? I thought one could only "switch" on numeric values? switch { case 1: case 2: case 3: default: } Regards, Ron

Re: Code for review

2001-08-14 Thread Peter Scott
At 10:33 AM 8/14/01 -0400, Yacketta, Ronald wrote: >I spoke with Mr. Peter Scott and he informed me that I would be ok to >cut/paste my code in >an email and post it to the list, Didn't think of the posting a URL solution at the time :-( >Please be open and honest, I am looking to speed up the s