Re: reducing perl cpu usage

2013-01-14 Thread David Precious
On Mon, 14 Jan 2013 11:22:18 +0700 budi pearl budipe...@gmail.com wrote: Is there any way to reduce the processor usage by perl? I am trying to use nice -19 but proc usage is still 100% Depends what your code is doing. If you're doing a continuous loop or something, yes, you'll eat up CPU.

Re: reducing perl cpu usage

2013-01-14 Thread Shawn H Corey
On Mon, 14 Jan 2013 11:22:18 +0700 budi pearl budipe...@gmail.com wrote: Is there any way to reduce the processor usage by perl? I am trying to use nice -19 but proc usage is still 100% According to the man page, you should try: nice 19 See http://linux.about.com/library/cmd/blcmdl1_nice.htm

RE: Line-oriented socket I/O using select()

2013-01-14 Thread Bob McConnell
From: Vic Sage I'm writing a multiplexed TCP-based server that reads \n-terminated strings from clients and does something with them. Since this is one process with multiple client connections, it uses select() (or, actually, can_read from IO::Select) to block until data has arrived from

Re: character setts in a regexp

2013-01-14 Thread John SJ Anderson
On Fri, Jan 11, 2013 at 2:01 PM, Christer Palm b...@bredband.net wrote: Do you have suggestions on this character issue? Is it possible to determine the character set of a text efficiently? Is it other ways to solve the problem? As far as other ways to solve the problem, my suggestion would

RE: Hi

2013-01-14 Thread Lou Pereira
OK, So I performed you step 3 again last Thursday, but I am still receiving e-mails??? Any more suggestions? Regards; Lou Pereira C: (973) 670-6821 mailto:louis.pere...@ptalc.com -Original Message- From: Kristin Nielsen [mailto:justkris...@gmail.com] On Behalf Of Kristin Nielsen Sent:

Re: reducing perl cpu usage

2013-01-14 Thread Jim Gibson
On Jan 13, 2013, at 8:22 PM, budi pearl wrote: Hi All, Is there any way to reduce the processor usage by perl? I am trying to use nice -19 but proc usage is still 100% Tasks: 189 total, 2 running, 187 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.5%sy, 26.0%ni, 73.5%id,

Re: character setts in a regexp

2013-01-14 Thread Charles DeRykus
On Sat, Jan 12, 2013 at 12:56 PM, Charles DeRykus dery...@gmail.com wrote: On Fri, Jan 11, 2013 at 2:01 PM, Christer Palm b...@bredband.net wrote: Hi! I have a perl script that parses RSS streams from different news sources and experience problems with national characters in a regexp

Re: Hi

2013-01-14 Thread Torqued
Regards... /omps On 14-Jan-2013, at 11:12 PM, Lou Pereira louis.pere...@ptalc.com wrote: OK, So I performed you step 3 again last Thursday, but I am still receiving e-mails??? Any more suggestions? May be the group doesn't want you to leave. ;) Regards; Lou Pereira C: (973) 670-6821

Re: Hi

2013-01-14 Thread Bill Stephenson
Hi Lou, You might want to make sure you're sending your email in plain text. Check your settings, if you're using Rich Text or HTML to format the email it might screw the pooch for you. That's a real old problem, but this might be real old software running this list. Also, I found this on

Re: Line-oriented socket I/O using select()

2013-01-14 Thread Vic Sage
On Jan 13, 2013, at 8:35 PM, Charles DeRykus dery...@gmail.com wrote: On Sun, Jan 13, 2013 at 3:03 PM, Vic Sage vic.s...@icloud.com wrote: What I *want* is to block until an entire \n-terminated string [can that be referred to as a line?] can be retrieved from one of my clients. I'm