You have to be using perl v5.10 or higher to use the smartmatch operator (~~).
In reply to Re^3: Failed array attemp by stevieb in thread Failed array attemp by Anonymous Monk