Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by Anonymous Monk
on Dec 03, 2021 at 07:01 UTC ( [id://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 _ )

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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-03-28 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found