Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Detecting if a folder is a symbolic link

by Anonymous Monk
on Dec 03, 2021 at 07:01 UTC ( #11139351=note: print w/replies, xml ) Need Help??


in reply to Re: Detecting if a folder is a symbolic link
in thread Detecting if a folder is a symbolic link

What does "_" mean here? ( Referring to -d _ )
  • Comment on Re^2: Detecting if a folder is a symbolic link

Replies are listed 'Best First'.
Re^3: Detecting if a folder is a symbolic link
by hippo (Bishop) on Dec 03, 2021 at 10:11 UTC

    It refers to the previous call to stat or other file test. Using the underscore saves a useless second call.

    If stat is passed the special filehandle consisting of an underline, no stat is done, but the current contents of the stat structure from the last stat, lstat, or filetest are returned.

    🦛

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-07-05 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?