\() does not create an array reference. See perldoc perlop on the \ operator to see what it does.
What you want is:
$array = []
In reply to Re: Understandig on Creating Empty array reference
by Corion
in thread Understandig on Creating Empty array reference
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |