in reply to Understandig on Creating Empty array reference

\() does not create an array reference. See perldoc perlop on the \ operator to see what it does.

What you want is:

$array = []