in reply to Counting elements in array
Try this !!
Try this trick to evaluate inside quotation string:
print "Array has @{[0+@Array]} elements"; print "Hash has @{[0+keys %Hash]} keys"; [download]
Sorry for necrobumping ^))