Perl Programming/Keywords/lstat

Previous: log Keywords Next: lt

The lstat keyword edit

lstat is a function that does the same as the stat function (including setting the special _ filehandle) but stats a symbolic link instead of the file the symbolic link points to. If there are no symbolic links on the system, a normal stat is done instead.

Without EXPRESSION, $_ is stat.

Syntax edit

  lstat EXPRESSION
  lstat DIRHANDLE
  lstat

See also edit

Previous: log Keywords Next: lt