in reply to Counting elements in array

Try this !!

print "The Array size is!:: scalar (@array) \n";

Replies are listed 'Best First'.
Re^2: Counting elements in array
by Anonymous Monk on Aug 29, 2017 at 09:15 UTC

    Try this trick to evaluate inside quotation string:

    print "Array has @{[0+@Array]} elements"; print "Hash has @{[0+keys %Hash]} keys";

    Sorry for necrobumping ^))