Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: searching a file

by tmiklas (Hermit)
on Mar 20, 2002 at 15:05 UTC ( [id://152995]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152995]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-23 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found