in reply to Re: print array of hashes
in thread print array of hashes

Maybe we should point out that scalar is not necessary in your case, because you already are in scalar context.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^3: print array of hashes
by muba (Priest) on Apr 24, 2010 at 01:02 UTC

    True as that may be, sometimes it feels more comfortable to be explicit about what you mean. For example (and let's keep it simple):

    my $total_price = ($item_price * $item_quantity) + $shipping_cost

    In that example the parentheses aren't necessary because multiplication already has higher precedence than addition anyway, but I feel it improves readability.