in reply to Re^4: re-key a hash (not so clear)
in thread re-key a hash

In the first case, the knowledge of the left-hand side used in evaluating the right-hand side is purely an optimisation--effectively, extended context--which doesn't change the semantic outcome of the statement.
quibble: it does change the semantic outcome. The game is judged to be worth the candle, though. Example:
use Data::Dumper; my ($a,$b,@a); ($a,$b) = split / /, "a "; print Dumper $a,$b; ($a,$b) = @a = split / /, "a "; print Dumper $a,$b;
Without the optimization, the default removal of trailing empty fields leaves $b undefined.

Replies are listed 'Best First'.
Re^6: re-key a hash (not so clear)
by BrowserUk (Patriarch) on Aug 03, 2004 at 22:19 UTC

    Conceeded++.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon