in reply to syntax of touch a file

see: perldoc -f utime

$now = time; utime $now, $now, @filenames; # and/or/maybe utime undef, undef, @filenames;

Replies are listed 'Best First'.
Re: Re: syntax of touch a file
by TVSET (Chaplain) on Dec 13, 2003 at 11:46 UTC
    Note, that the difference with the system touch (/usr/bin/touch) is that utime will not create an empty file, if target file does not exist. That is not always needed, but it's good to know. :)
    A reply falls below the community's threshold of quality. You may see it by logging in.