Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
[erix]: heh
[Discipulus]: $this != '|'
[Corion]: A good morning ;)
[Discipulus]: good morning monks! hi hdb

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-05-30 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?