in reply to Re: utime for symbolic links
in thread utime for symbolic links

Your example sets the atime/mtime to current time. I need to set the atime and mtime of the link to a specific value. I updated my question to be more clear.

Replies are listed 'Best First'.
Re^3: utime for symbolic links
by hippo (Archbishop) on Apr 15, 2020 at 15:34 UTC

    The documentation seems clear enough, no?

    atime => $time
    
        If defined, use this time (in epoch seconds) instead of current time for access time.
    
    mtime => $time
    
        If defined, use this time (in epoch seconds) instead of current time for modification time.
    
    
      But it changes the atime and mtime of the linked file, not the link itself.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]