In article
<[EMAIL PROTECTED]>,
Dan Muey wrote:
>> The hash-keys version would probably be a bit faster:
>>
>> @unique = keys %{
>> my %set;
>> @set{ @arr } = (); # fast!
>> \%set;
>> };
>
> One question why doesn't use strict; complain about @set?
Heh, I think I just posted about this. Unless my memory deceives me,
"@set{ @arr }" is a hash slice. That is, it's really %set (in 'batch' mode
;-)), which you have declared. I remember this because it seemed so strange
at the time.
-K
--
Kevin Pfeiffer
International University Bremen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]