in reply to Scalar::Util 'looks_like_number()' code's $] comparison

I'm not sure, but I would guess that looks_like_number would return true if its parameter was undefined in those earlier version of Perl and this current code exists to maintain compatibility with that original behavior.

... this may be the case. Google turned up the following post.