"M.J.T. Guy" <mjtg@cus.cam.ac.uk> writes: > > And I cannot > > see why 'scalar(@x)->[2]' produces the 3rd element of array @x. > > Where does it say anything about scalar context? As far as I can tell, scalar(@x) is 4, and 4->[2] points to nothing defined, most certainly not to $x[2]. -- Johan