Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: if -s clause on a FILEHANDLE

by drock (Beadle)
on Jun 08, 2004 at 21:43 UTC ( #362569=note: print w/replies, xml ) Need Help??


in reply to Re^3: if -s clause on a FILEHANDLE
in thread if -s clause on a FILEHANDLE

Is there a ideal way to "touch" a file instead of opening a file then >$foo it? for example,
my $foo="/tmp/ftapes_runfile"; open (RUNFILE, ">$foo") || die "could not open runfile: $!;" close (RUNFILE);
thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-09-26 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?