You misunderstand. Perl makes a difference between @x and "@x".
$count = @x;
will assign the number of elements in @x to $count.
$list = "@x";
will assign string with all elements of @x separated by comma to $list.
See perlop for the stringification/interpolation of arrays and the assignment operator.
In reply to Re^3: Perl interpretor for conditional operator "?"
by Corion
in thread Perl interpretor for conditional operator "?"
by yramesh.1981
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |