in reply to Re^13: Order of evaluation/interpolation of references
in thread Order of evaluation/interpolation of references
The curse of the trivial example. Would you agree that first is a lot easier on the eyes than the latter two?:
print "And the set contains [ { sort @a } ]\n";; And the set contains [ brown dog fox jumps lazy over quick the the ] printf "And the set contains [ %s ]\n", join ' ', sort @a;; And the set contains [ brown dog fox jumps lazy over quick the the ] print "And the set contains [ ", join( ' ', sort @a ), " ]\n";; And the set contains [ brown dog fox jumps lazy over quick the the ]
Even with the complication of the p5 syntax, it's still nicer to my eyes:
print "And the set contains [ @{[ sort @a ]} ]\n";; And the set contains [ brown dog fox jumps lazy over quick the the ]
|
|---|