Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: (OT) How do I tell if a handle is open for writing?

by DrWhy (Chaplain)
on Nov 07, 2005 at 17:47 UTC ( #506467=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do I tell if a handle is open for writing?
in thread How do I tell if a handle is open for writing?

I did that once. I wouldn't recommend it to anyone -- it tends to make your mother a little crazy...

--DrWhy

"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

  • Comment on Re^3: (OT) How do I tell if a handle is open for writing?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://506467]
help
Chatterbox?
[ovedpo15]: is it possible to check status of system("$RM -rf $dir"); where $RM is /bin/rm? I mean by using $out = system("$RM -rf $dir"); where $RM is /bin/rm. although because of the -f flag it will always print $out = 1
[moritz]: vedpo15 you can check the exit code of the system call in Perl, but that doesn't seem to provide you with the information you want
[marto]: why would you shell out like that rather than use rmdir?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-05-22 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?