in reply to Is hash evaluated with in double quotes

No, it isn't. But if you want to just quick-n-dirty interpolate, you could do something like

print "Key value pair in hash: @{[%hash]}";

which evaluates the hash in list context, and prints its entries in unsorted order:

Key value pair in hash: k2 v2 k1 v1 k3 v3

Replies are listed 'Best First'.
Re^2: Is hash evaluated with in double quotes
by Wiggins (Hermit) on Mar 05, 2009 at 13:20 UTC
    Can you de-construct this "@{[%hash]}" please.

    @{ } interpret as an array [ ] ??? %hash The hash
    Is that the Anon Array constructor? What is its function here?


    It is always better to have seen your target for yourself, rather than depend upon someone else's description.

      [%hSomeHash] creates an array reference populated by all of the members of %hSomeHash. @{} says extract the array from the array reference found between {...}.

      Best, beth

Re^2: Is hash evaluated with in double quotes
by anbutechie (Sexton) on Mar 05, 2009 at 13:06 UTC
    Fentastic its working
    but why the order has changed.
    Thank you
    Anbarasu
      but why the order has changed

      A hash is unordered. See Tie::Hash::Sorted for keeping hashes sorted.

      -- 
      Ronald Fischer <ynnor@mm.st>