in reply to Re: searching a file
in thread searching a file

Hi!

Nice code - especially:

$hash{$_} = $changes{$_} for keys %changes

Greetz, Tom.

Replies are listed 'Best First'.
Re: Re: Re: searching a file
by broquaint (Abbot) on Mar 20, 2002 at 15:26 UTC
    If assigning changes in a hash I prefer to do the following
    @hash{keys %changes} = values %changes;
    I believe it does the same thing (unless I'm missing something) as values() returns the hash values in the same order as keys().
    TIMTOWTDI

    broquaint