in reply to Re^2: Still don't undersand "Modification of a read-only value attempted" error
in thread Still don't undersand "Modification of a read-only value attempted" error
I find this interesting — and surprising! Range Operators in perlop has:
Binary ".." is the range operator.... In list context, it returns a list of values .... If the left value is greater than the right value then it returns the empty list. ... In the current implementation, no temporary array is created when the range operator is used as the expression in foreach loops...
This certainly makes it seem as though the range operator (in list context) returns an ordinary list, so why the difference in behaviour?
Is this documented anywhere? Or is it an undocumented feature?
Athanasius <°(((>< contra mundum
|
---|