RE: Very slow array searching

2003-07-29 Thread Rafaqat Ali Chaudhary
Thanks George. It reduced the total time to almost 50%. Rafaqat Ali Chaudhary -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George P. Sent: Tuesday, July 29, 2003 11:57 To: Rafaqat Ali Chaudhary Cc: [EMAIL PROTECTED] Subject: Re: Very slow array

Very slow array searching

2003-07-28 Thread Rafaqat Ali Chaudhary
20K elements. This piece of code is taking up almost 100% of the CUP cycles. Would somebody please suggest some alternative solution. Thanks in Advance Rafaqat Ali Chaudhary -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Hex files manipulation problem

2003-07-12 Thread Rafaqat Ali Chaudhary
Got another problem: Following line of code fails if directory contains more than 1400 or so files: 1. my @filelist = glob("input/switch1*.evt"); Any help will be highly appreciated. Regards Rafaqat Ali Chaudhary -Original Message----- From: Rafaqat Ali Chaudhary [mailto:[EMAIL

RE: Hex files manipulation problem

2003-07-12 Thread Rafaqat Ali Chaudhary
That's Great. Using binmode has solved my problem. Yes the data files were created at a big-endian SPARC machine and were FTPed to a little-endian Intel based machine. Thanks for the help. Regards Rafaqat Ali Chaudhary -Original Message- From: John W. Krahn [mailto:[EMAIL PROT

RE: Hex files manipulation problem

2003-07-12 Thread Rafaqat Ali Chaudhary
> 2048 ) { 21. # Bad valid data in block length 22. print "WARNING: Invalid valid data in block length ($length)\n"; 23. last; 24. } The Error Message: WARNING: Invalid valid data in block length (16412) The same message appears both on Red H

Hex files manipulation problem

2003-07-12 Thread Rafaqat Ali Chaudhary
Hi every body, I've got here a script which extracts event logs from Hexadecimal files by parsing them for a certain pattern set. The script runs fine on Solaris 8 (running on a SUN box) but fails on Linux or a Windows box. Somebody please guide me in this regard. Thanks in advance. Rafaqa