Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Re: syntax of touch a file

by TVSET (Chaplain)
on Dec 14, 2003 at 22:22 UTC ( [id://314694]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: syntax of touch a file
in thread syntax of touch a file

Sure it does. But the OP said that he wants to "touch a file". That does not always mean to update the access and/or modification times. Touching a file is a fast and easy way of creating a non-existing file. Perl's utime does not do it. It is not written in documentation that it does not do it, which is logical. But guess what, "man 1 touch" on my system doesn't also say that touch creates files if they don't exist. The only hint you get is the mentioning of the "-c" or "--no-create" option. And that could have caused some confusion, depending on the task at hand - hence my comment. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://314694]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found