in reply to Re^2: Error: Not enough space
in thread Error: Not enough space
I think the point has already been made. You aren't supposed to look in $! unless an error has just occured. For instance
print $fh "foo\n" or die "Error writing: $!";
Since we dont know where your $! testing code occurs, theres any number of possibilities as to how $! can be set. For all we know some part of your code catches an error at some point and leaves $! set. Consider the following program:
perl -le "print BLAH 'foo' or warn $!; print 'foo'; print $!";
The error message persists long after its relevent.
As and aside: please use <code> tags around any code you post. At the very least it will avoid errors like the one at the bottom of your post. ;-)
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Error: Not enough space
by jhazra (Novice) on Jan 05, 2005 at 00:22 UTC | |
by demerphq (Chancellor) on Jan 05, 2005 at 00:32 UTC | |
by Joost (Canon) on Jan 05, 2005 at 00:32 UTC | |
by jhazra (Novice) on Jan 05, 2005 at 00:50 UTC | |
by Joost (Canon) on Jan 05, 2005 at 12:06 UTC | |
by Anonymous Monk on Jan 05, 2005 at 11:51 UTC | |
by ikegami (Patriarch) on Jan 05, 2005 at 00:36 UTC | |
by jhazra (Novice) on Jan 05, 2005 at 01:11 UTC |