Re: Subscripting, semicolons, and adverbs

2021-12-10 Thread Sean McAfee
On Fri, Dec 10, 2021 at 1:48 PM I wrote: > So this looks pretty buggy, but I wonder if I'm somehow invoking undefined > behavior by combining semicolons and adverbs while subscripting. The > online docs cover both features separately, but not in tandem that I can > see. > Actually, immediately

Subscripting, semicolons, and adverbs

2021-12-10 Thread Sean McAfee
I was writing some code that involved accessing an array-of-arrays. I wanted to check whether both of a given pair of indices were in bounds, so I wrote: return () if @array[$y]:!exists or @array[$y][$x]:!exists or ... The double index check bugged me a bit, since I wondered if there might