Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: "The stat preceding -l _ wasn't an lstat"?

by Burak (Chaplain)
on Jan 17, 2010 at 21:32 UTC ( [id://817899]=note: print w/replies, xml ) Need Help??


in reply to Re: "The stat preceding -l _ wasn't an lstat"?
in thread "The stat preceding -l _ wasn't an lstat"?

You're right I guess. Btw, I'm doing -f $file && ! -l $file (double call) now to prevent this error.

Replies are listed 'Best First'.
Re^3: "The stat preceding -l _ wasn't an lstat"?
by Tanktalus (Canon) on Jan 19, 2010 at 20:08 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://817899]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found