in reply to Re^4: Error: Not enough space
in thread Error: Not enough space
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Error: Not enough space
by jhazra (Novice) on Jan 05, 2005 at 01:11 UTC |