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;
In reply to Re: Why doesn't chmod work on this lexical filehandle?
by pavunkumar
in thread Why doesn't chmod work on this lexical filehandle?
by williff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |