Re: Pbm in Sorting the hash

2007-09-23 Thread sivasakthi
On Fri, 2007-09-21 at 12:47 -0400, Chas. Owens wrote: > On 9/21/07, sivasakthi <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I have file like that following, > > > > site_name access_time > > www.google.com14:13:04|14:13:04| > > 172.16.5.49 14:12:10|14:12

Re: Pbm in Sorting the hash

2007-09-22 Thread Dr.Ruud
sivasakthi schreef: > Could u help me to solve the pbm??? Try this first: s/\bu\b/you/ s/\bpbm\b/problem/ s/\?{3}/?/ -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Pbm in Sorting the hash

2007-09-21 Thread John W. Krahn
sivasakthi wrote: Hi all, Hello, I have file like that following, site_name access_time www.google.com14:13:04|14:13:04| 172.16.5.49 14:12:10|14:12:56| 172.16.65.53 14:12:41|14:12:58| 172.16.671.35 14:12:29| from the abov

Re: Pbm in Sorting the hash

2007-09-21 Thread Chas. Owens
On 9/21/07, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > I have file like that following, > > site_name access_time > www.google.com14:13:04|14:13:04| > 172.16.5.49 14:12:10|14:12:56| > 172.16.65.53 14:12:41|14:12:58| > 172.16.671.35

Re: Pbm in Sorting the hash

2007-09-21 Thread Rob Dixon
sivasakthi wrote: Hi all, I have file like that following, site_name access_time www.google.com14:13:04|14:13:04| 172.16.5.49 14:12:10|14:12:56| 172.16.65.53 14:12:41|14:12:58| 172.16.671.35 14:12:29| from the above file i n

Re: Pbm in Sorting the hash

2007-09-21 Thread Tom Phoenix
On 9/21/07, sivasakthi <[EMAIL PROTECTED]> wrote: > open(FILE,:/tmp/test.txt/" or die "cant open the file"); You probably meant a quote mark instead of a colon there. > foreach $dname (sort {$noofconns{$b} <=> $noofconns{$a}} %noofconns) It looks as if you want to use the keys() function there,

Pbm in Sorting the hash

2007-09-21 Thread sivasakthi
Hi all, I have file like that following, site_name access_time www.google.com14:13:04|14:13:04| 172.16.5.49 14:12:10|14:12:56| 172.16.65.53 14:12:41|14:12:58| 172.16.671.35 14:12:29| from the above file i need to print the sit