http://www.perlmonks.org?node_id=11115583


in reply to utime for symbolic links

My guess is that touch -h is using the lutimes(3) system call (where available) which a quick ripgrep through the perl source doesn't show any reference to. You theoretically could wrap it directly yourself with Inline::C but I don't think you're otherwise going to have luck directly from perl.

Edit: derp, wrong man section fixed

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: utime for symbolic links
by haukex (Bishop) on Apr 15, 2020 at 17:07 UTC
    My guess is that touch -h is using the lutimes(3) system call

    No (at least not in GNU coreutils), but that's an excellent hint nonetheless - a search on CPAN reveals File::lchown that does support lutimes!