Maybe it depends on whether the last stat was successful or not? That is, if sysinfo.pl doesn't exist, your code gives me no problems, printing FooBar. But, on the same machine, if I then touch sysinfo.pl, I get the error message you complain about. Perhaps perl can't tell the difference between an unsuccessful stat and an unsuccessful lstat, when using "-l _" because it's just not stored?
In reply to Re: "The stat preceding -l _ wasn't an lstat"?
by Tanktalus
in thread "The stat preceding -l _ wasn't an lstat"?
by Burak
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |