Hugh Loebner wrote: > foreach my $fhkey ( keys %fh){ > open ( $fh{$fhkey}, ">$fhkey" ) ; > }
Nobody mentioned this yet: Since you want your filehandles to be unique, why not use the key of the hash instead of the value? In other words, change the above to: foreach my $fhkey ( keys %fh){ open ( $fhkey, ">$fhkey" ) ; } - Mark. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs