http://www.perlmonks.org?node_id=1230483


in reply to Re: Need help with range expression ('0 .. -0.5' === '0 .. 0.5')
in thread [SOLVED]: Need help with range expression ('0 .. -0.5' === '0 .. 0.5')

I am surprised that this works for the special case qw(A). Documentation for the range operator specifies that it returns an empty list when the first element is greater than the second (in this case 0..-1). I cannot find any documentation of what should happen when the list of elements in an array slice is an empty list (in this case @a() ). It seems to return an empty string, which is exactly what is needed!

UPdate: Corrected terminology - Changed 'string' to 'list'.

Bill