Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 surveying the Monastery: (8)
As of 2017-11-23 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (335 votes). Check out past polls.

    Notices?