Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Why doesn't chmod work on this lexical filehandle?

by pavunkumar (Scribe)
on Feb 15, 2011 at 07:23 UTC ( #888138=note: print w/replies, xml ) Need Help??


in reply to Why doesn't chmod work on this lexical filehandle?

 
 You can try this......   
open ($OUT,">$$outScalarRef") or open ($OUT,">$$outScalarRef-$date") or die "Cannot open file $$outScalarRef : $!\n"; print $OUT @stuff; # chmod 0444, $OUT; my ($inode) = ((stat($OUT))[1]); my ($filename) = ` find . -inum $inode ` ; chomp $filename ; chmod 0444, $filename ; close $OUT;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888138]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2017-07-22 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (338 votes). Check out past polls.