Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Thread safe equivalent of LINUX touch command

by ColonelPanic (Friar)
on Nov 22, 2012 at 14:50 UTC ( #1005139=note: print w/ replies, xml ) Need Help??


in reply to Thread safe equivalent of LINUX touch command

How about opening the file for appending, then immediately closing it?

open my $fh, '>>', 'file.txt' or die "Ouch: $!"; close $fh;
Not tested (I'm on Windows and think this might be system-dependent).


When's the last time you used duct tape on a duct? --Larry Wall


Comment on Re: Thread safe equivalent of LINUX touch command
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2015-07-07 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls