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, just before
the name of the hash.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to