Re: Perl file and STDERR

2013-07-10 Thread shawn wilson
On Jul 10, 2013 2:01 AM, "jitendra B" wrote: > > Thank you very much Andy, Nathan, Shawn for your kind help. > > I am new to the perl. Why auto-flush is needed here (STDERR autoflushes)? > Probably for consistency with autoflush being enabled for STDOUT, it's also on with STDERR. It's an optimiza

Re: Perl file and STDERR

2013-07-10 Thread Shawn H Corey
On Wed, 10 Jul 2013 04:57:44 -0400 shawn wilson wrote: > On Jul 10, 2013 2:01 AM, "jitendra B" wrote: > > > > Thank you very much Andy, Nathan, Shawn for your kind help. > > > > I am new to the perl. Why auto-flush is needed here (STDERR > > autoflushes)? > > > > Probably for consistency with a

gauging events

2013-07-10 Thread shawn wilson
I'm trying to figure out how to group things that occure more frequently in a rolling time frame (given a minimum event group). I'd like some type of ranking and the medium time. So, for instance, if I had something like this: $time = [ 10:00, 10:01, 10:15, 10:10, 10:25, 10

Re: gauging events

2013-07-10 Thread Jim Gibson
On Jul 10, 2013, at 5:26 AM, shawn wilson wrote: > I'm trying to figure out how to group things that occure more > frequently in a rolling time frame (given a minimum event group). I'd > like some type of ranking and the medium time. > > So, for instance, if I had something like this: > $time =

Re: Perl file and STDERR

2013-07-10 Thread Andy Bach
On Wed, Jul 10, 2013 at 7:08 AM, Shawn H Corey wrote: > Auto-flush is a de-optimization. Don't set it. More "Best Practices" on autoflush (note, the original book "Perl Best Practices" by Damian Conway is well worth the price. Even for those few you may not agree with, practices-wise, you'll le

Re: Perl file and STDERR

2013-07-10 Thread Shawn H Corey
On Wed, 10 Jul 2013 10:49:37 -0500 Andy Bach wrote: > On Wed, Jul 10, 2013 at 7:08 AM, Shawn H Corey > wrote: > > > Auto-flush is a de-optimization. Don't set it. > > > > More "Best Practices" on autoflush (note, the original book "Perl Best > Practices" by Damian Conway is well worth the p

Re: Perl file and STDERR

2013-07-10 Thread Kenneth Wolcott
On Wed, Jul 10, 2013 at 9:21 AM, Shawn H Corey wrote: > On Wed, 10 Jul 2013 10:49:37 -0500 > Andy Bach wrote: > >> On Wed, Jul 10, 2013 at 7:08 AM, Shawn H Corey >> wrote: >> >> > Auto-flush is a de-optimization. Don't set it. >> >> >> >> More "Best Practices" on autoflush (note, the original boo

Re: gauging events

2013-07-10 Thread shawn wilson
I'm still not getting it. Technically, I don't even want a static average - if a group is 5,6,7, I'd like to see it the same as 8,10,12,14,16 but probably have the later rank higher based on $distance/$numbers. As it is, I can't even get this to work, so... use strict; use warnings; use Data::Dum