Re: 15 Million RAW

2005-11-25 Thread Gary Stainburn
Here's my 2peneth. Avoid regex. While it's powerfull, it's also expensive. Short but sweet Gary On Friday 25 November 2005 3:31 am, Chris Devers wrote: On Thu, 24 Nov 2005, Pierre Smolarek wrote: Lorenzo Caggioni wrote: The program I written takes 25 sec for 10.000 line... too

Re: 15 Million RAW

2005-11-25 Thread Chris Devers
On Fri, 25 Nov 2005, Gary Stainburn wrote: Here's my 2peneth. Avoid regex. While it's powerfull, it's also expensive. Short but sweet And useful! Because we know that regular expressions are the problem here, right? Err, wait, we haven't seen any code, or any benchmarks, so we don't.

Re: 15 Million RAW

2005-11-25 Thread Lorenzo Caggioni
Attached you can find the code an a input file to try it. I'm sorry if the code is not realy commented and if it is no real clear, but i have to delete some line because it is base on a database Now the program can run without any DB.You can find even a profile for the program. Thanks

Re: 15 Million RAW

2005-11-25 Thread John Doe
Lorenzo Caggioni am Freitag, 25. November 2005 11.04: Attached you can find the code an a input file to try it. I'm sorry if the code is not realy commented and if it is no real clear, but i have to delete some line because it is base on a database From a short view into the code, I see

Re: Checking the Machine's Operating System

2005-11-25 Thread Mazhar
Then how well can i write the script to log to a remote server and then capture the following thing 1. to know the operating system of the logged remote server 2. to know the free space and then the number of drives or partitiones created in the remote server Mazhar On 11/21/05, John Doe

HTTP Posting in Perl

2005-11-25 Thread Mazhar
Dear Folks, I have a requirement where in i have to post a message to a Mail Server with all the subject, To address everything. But the message sent should be posted on port 80. Please suggest me something so that i can work it out Regards Mazhar

Re: Checking the Machine's Operating System

2005-11-25 Thread Mohammed Shameer
Can't you use Net::SSH::Perl module ? On Friday 25 November 2005 17:51, Mazhar wrote: Then how well can i write the script to log to a remote server and then capture the following thing 1. to know the operating system of the logged remote server 2. to know the free space and then the

Re: HTTP Posting in Perl

2005-11-25 Thread Chris Devers
On Fri, 25 Nov 2005, Mazhar wrote: I have a requirement where in i have to post a message to a Mail Server with all the subject, To address everything. But the message sent should be posted on port 80. Please suggest me something so that i can work it out Okay.

Re: 15 Million RAW

2005-11-25 Thread Rob Coops
Making the subs shorter will maybe help a little in the speed of processing but it will make it a lot more difficult for the person that gets to take over the maintanace. When you know what you are doing and why it is easy to read it, but when you get a big program written like that and are asked

Re: 15 Million RAW

2005-11-25 Thread John Doe
Rob Coops am Freitag, 25. November 2005 14.13: Making the subs shorter will maybe help a little in the speed of processing but it will make it a lot more difficult for the person that gets to take over the maintanace. When you know what you are doing and why it is easy to read it, but when you

Re: 15 Million RAW

2005-11-25 Thread Lorenzo Caggioni
I made some changes in the program (delete eval, edjust subs... ) Now the program takes less then 3 sec but it loses all the structure... The main thing that increase performance is delete the eval(fun name). I do it in this way because the name of the function is retrived from a database. is

Re: 15 Million RAW

2005-11-25 Thread Jeff 'japhy' Pinyan
On Nov 25, Lorenzo Caggioni said: I made some changes in the program (delete eval, edjust subs... ) Now the program takes less then 3 sec but it loses all the structure... The main thing that increase performance is delete the eval(fun name). I do it in this way because the name of the

Re: 15 Million RAW

2005-11-25 Thread Dr.Ruud
Lorenzo Caggioni: Please don't toppost, and cut all the text that you don't react on. is there another way to recal a function retrining his name from a variable? If the set of functions is limited, use if: if ('abc' eq $func) { abc } elseif ('def' eq $func) {

Re: 15 Million RAW

2005-11-25 Thread Tom Allison
Chris Devers wrote: On Thu, 24 Nov 2005, Pierre Smolarek wrote: Lorenzo Caggioni wrote: The program I written takes 25 sec for 10.000 line... too much How quickly do you need to it if 25 seconds is too long? If 10,000 lines take 25 seconds, you're doing 400 lines per second. At

Re: How recognize strange subject in a mail ?

2005-11-25 Thread Gerard Robin
On Thu, Nov 24, 2005 at 09:32:41PM -0500 Chris Devers wrote: On Fri, 25 Nov 2005, Gerard Robin wrote: Can someone give me some advices to recognize such subject if it's possible. Yes, it's possible. The solution is already available, it's called SpamAssassin, and if you're trying to

Re: ?php???

2005-11-25 Thread JupiterHost.Net
Dr.Ruud wrote: JupiterHost.Net: Dr.Ruud: I don't mind using PHP for many parts of a website. For example I like pear/Image_Graph, see http://pear.php.net/package/Image_Graph and http://pear.veggerby.dk/samples/ If you know a similar Perl module, please let me know. Sure, search cpan

Re: ?php???

2005-11-25 Thread Paul Johnson
On Fri, Nov 25, 2005 at 12:21:23PM -0600, JupiterHost.Net wrote: Dr.Ruud wrote: JupiterHost.Net: Dr.Ruud: Might I suggest that this thread has run its course? Apropos of nothing very much: http://kitenet.net/~joey/blog/entry/thread_patterns-2005-10-27-00-53.html -- Paul Johnson - [EMAIL

Re: ?php???

2005-11-25 Thread JupiterHost.Net
Might I suggest that this thread has run its course? You may :) Just pointing out what I hope will show PHP has run its course :) So that people will think twice before using it... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How recognize strange subject in a mail ?

2005-11-25 Thread Chris Devers
On Fri, 25 Nov 2005, Gerard Robin wrote: I knew the package debian spamassassin but the description of the package is no clear about a few points. Fortunately, they have a web site with copious documentation :-) 1. if the spams are deleted on the server or on my hard disk. I have a slow

Re: ?php???

2005-11-25 Thread Dr.Ruud
JupiterHost.Net: Dr.Ruud: JupiterHost.Net: Dr.Ruud: I don't mind using PHP for many parts of a website. For example I like pear/Image_Graph, see http://pear.php.net/package/Image_Graph and http://pear.veggerby.dk/samples/ If you know a similar Perl module, please let me know. Sure,

Re: 15 Million RAW

2005-11-25 Thread John W. Krahn
Lorenzo Caggioni wrote: Attached you can find the code an a input file to try it. I'm sorry if the code is not realy commented and if it is no real clear, but i have to delete some line because it is base on a database Now the program can run without any DB. You can find even a

Re: HTTP Posting in Perl

2005-11-25 Thread Eric Pretorious
On Fri, 2005-11-25 at 17:56 +0530, Mazhar wrote: Dear Folks, I have a requirement where in i have to post a message to a Mail Server with all the subject, To address everything. But the message sent should be posted on port 80. Please suggest me something so that i can work it out

Re: mode Q on File::stat

2005-11-25 Thread Abid Khwaja
Thanks for the pointers. Here's what I did: 1. stat the file to see the mode set by the system demerzel:~/etc abid$ ls -l total 16 -rw-rw 1 root uucp 311 Nov 14 15:20 slist.conf demerzel:~/etc abid$ stat -s slist.conf st_dev=234881026 st_ino=6858828 st_mode=0100660 st_nlink=1 st_uid=0