My question is why the value of count is just the number of the data in @?The reason is found in List value constructors:
Note that the value of an actual array in scalar context is the length of the array; the following assigns the value 3 to $foo:
@foo = ('cc', '-E', $bar);
$foo = @foo; # $foo gets 3
In reply to Re: why the value of count will be change?
by toolic
in thread why the value of count will be change?
by yueli711
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |