in reply to Cheking for duplicates

Your problem would appear to be that you're testing the hash for being empty, c/w a test for the existence of an individual key on the hash i.e. change unless (! %seen) to unless (! %seen->{$hosts->name}), or some such...

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^2: Cheking for duplicates
by blackadder (Hermit) on Sep 17, 2009 at 12:54 UTC
    Many Thanks indeed...It worked but like this
    foreach my $hosts (@$hosts_views) { unless ( $seen{$hosts->name}) { printf "%s\n",$hosts->name; } }
    Blackadder