in reply to help sorting

Sure, load up your data into a hash-based structure (see ARRAY OF HASHES in perldsc).
my @houses; # populate @houses, an AOH (see perldsc) foreach my $file(@array) { open HOUSE "<$file"; my $hr={input_file => $file}; # do whatever parsing you need to fill in the fields # this assumes that price, location, etc... are all one # line each in file $hr->{price} = <HOUSE>; chomp $hr->{price}; $hr->{location} = <HOUSE>; chomp $hr->{location}; #... close(HOUSE); push @houses, $hr; } # sort @houses=sort {$a->{price} <=> $b->{price}} @houses; #generate HTML
Make sense?
--
Mike