http://qs1969.pair.com?node_id=11139351


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.

    🦛