Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: "The stat preceding -l _ wasn't an lstat"?by Tanktalus (Canon) |
on Jan 19, 2010 at 20:08 UTC ( [id://818282]=note: print w/replies, xml ) | Need Help?? |
Just reverse it, and it's ok. ! -l $file && -f _. The -f flag can work on lstat's output, whether the lstat found a link or not.
In Section
Seekers of Perl Wisdom
|
|