in reply to Different behaviour of 'stat' function after assignment to $! (errno).
$ rm 1 rm: cannot remove `1': No such file or directory $ perl -e " stat 1; printf qq[%d %s %d\n], $!,$!,-$!; 2 No such file or directory -2 $ perl -e " $!=0; stat 1; printf qq[%d %s %d\n], $!,$!,-$!; 2 No such file or directory 0 $ perl -e " $!=2; stat 1; printf qq[%d %s %d\n], $!,$!,-$!; 2 No such file or directory -2 $ perl -e " $!=1; stat 1; printf qq[%d %s %d\n], $!,$!,-$!; 2 No such file or directory -1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Different behaviour of 'stat' function after assignment to $! (errno).
by jpl (Monk) on May 24, 2011 at 11:27 UTC | |
by Anonymous Monk on May 24, 2011 at 11:45 UTC | |
by ikegami (Patriarch) on May 24, 2011 at 15:53 UTC | |
by jpl (Monk) on May 24, 2011 at 12:29 UTC | |
by Anonymous Monk on May 24, 2011 at 12:54 UTC | |
by Anonymous Monk on May 24, 2011 at 11:54 UTC |