P is for Practical | |
PerlMonks |
Re: "The stat preceding -l _ wasn't an lstat"?by Tanktalus (Canon) |
on Jan 15, 2010 at 23:51 UTC ( [id://817716]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|