Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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;


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-11-22 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (123 votes), past polls