Re: printf

2012-09-02 Thread Dr.Ruud
On 2012-08-31 15:17, Torsten wrote: I found a strange behaviour for printf: If you do for example printf "%d",29/100*100 you get 28. But with printf "%d",29*100/100 it's 29. Seems to be related to rounding. The perl version is 5.10.1 on debian. There is nothing strange about it. I think y

Re: re-reading from already read file handle

2012-09-02 Thread Dr.Ruud
On 2012-08-20 22:39, Rajeev Prasad wrote: just want to find out in how many records string was found: my $count=0; seek $tmp_FH,0,0; while (<$tmp_FH>) { my $line=$_;chomp($line); if ($line=~m/\"$str\"/) {$coun

Re: printf

2012-09-02 Thread Torsten
Am Sun, 02 Sep 2012 13:12:02 +0200 schrieb "Dr.Ruud" : > On 2012-08-31 15:17, Torsten wrote: > > > I found a strange behaviour for printf: If you do for example > > > > printf "%d",29/100*100 > > > > you get 28. But with > > > > printf "%d",29*100/100 > > > > it's 29. Seems to be related to round

Re: socket port

2012-09-02 Thread Chris Stinemetz
Thank you Peng. Are there any other suggestions from the list? Thanks in advance, Chris

Re: socket port

2012-09-02 Thread Jim Gibson
On Aug 30, 2012, at 6:46 AM, Chris Stinemetz wrote: > Hello List, > > I am creating a program, where for the first time, I will be reading > in data from a socket port. > > I am a bit confused about how to print the processed data while still > reading in data from the port. Thus far, I have on

Re: socket port

2012-09-02 Thread Chris Stinemetz
Thank you so much Jim. -Chris