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


in reply to Wrong dereference => Out of memory

I would guess it doesn't really run out of memory, so much as trigger some error whose generic error message is "out of memory" (ENOMEM or the like), so you get the generic message which isn't quite appropriate to your case.