in reply to doubts in references

ccn told you what it does. But actually what it does is

print %hash; # prints hash as a list of its keys and values.

- as in -

print @{ [ %hash ] } # prints hash as a list of its keys and values.

[ ... ]    # an array reference is created... and
@{ ... } # that array reference is de-referenced... it is no more.

Cheers, Sören

Replies are listed 'Best First'.
Re^2: doubts in reference
by Grygonos (Chaplain) on Sep 27, 2004 at 18:55 UTC

    That's a neat trick you can use for obfu code. do something and then undo it before the statement terminates. Theoretically you could add [] and @{} indefinitely to the outter bounds of the hash and it would still be fine..