Zentara wrote:
Then after the file is successfully created, make sure it is
"world-readable".....usually mode 755.
But most systems are setup with a default filemask set, to create
files as mode 644 as default.
So after you create your file, do a chmod on it to make sure its
755.
$r_file = 'z';
chmod 0755, $r_file or die "Cannot chmod $r_file: $!";
Err.. Since when doesn't 644 mean that a file is "world readable"? The
difference between 755 and 644 is that the execute bit is set when the
former is true, but if the file isn't going to be executed, 644 should
be just fine.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>