Or is it that the value of $! can be "Not enough space" even without my program causing a memory exception?
Yes. Check to see if the print right before the # here I check $! returned true or false. If it returned false, that print got an error ("Not enough space."). If it returned true, $! is meaningless. Which is to say an error may or may not have occured earlier, but you have no way of knowing. This is stated in the documentation for $! in perlvar.
In reply to Re^5: Error: Not enough space
by ikegami
in thread Error: Not enough space
by jhazra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |