in reply to Re^2: Perl interpretor for conditional operator "?"
in thread Perl interpretor for conditional operator "?"
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl interpretor for conditional operator "?"
by yramesh.1981 (Initiate) on May 22, 2011 at 17:57 UTC |